vo: clarify condition

This is (at least currently) redundant, but makes the code more
explicit. (This was discussed on IRC.)
This commit is contained in:
wm4 2015-06-08 12:27:40 +02:00
parent b694f480fe
commit 5dbd22e165
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ static bool render_frame(struct vo *vo)
in->dropped_frame = duration >= 0 && end_time < next_vsync;
// Clip has similar (within ~5%) or lower fps than the display.
if (duration > 0.95 * in->vsync_interval) {
if (duration >= 0 && duration > 0.95 * in->vsync_interval) {
// If the clip and display have similar/identical fps, it's possible that
// due to the very tight timing, we'll drop frames frequently even if on
// average we can keep up - especially if we have timing jitter (inaccurate