aboutsummaryrefslogtreecommitdiffhomepage
path: root/video
diff options
context:
space:
mode:
authorGravatar wm4 <wm4@nowhere>2015-11-14 21:45:27 +0100
committerGravatar wm4 <wm4@nowhere>2015-11-14 21:49:48 +0100
commitcf3b34f17aa3123996b93b7e76f8e2d58a32dedb (patch)
treed8b494dd2ebf4b19719e2a2c544bb6e7ad355cd9 /video
parenta790009a630ebf12772ead2915ca9d59ee7fdf72 (diff)
vo: fix dropping frames with display-sync
I guess the removed code is an old leftover, and makes no sense anymore. Should fix weird A/V diff dropouts when frames are being dropped with display-sync.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 767f6bab7d..9e1d1c3dd2 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -1049,8 +1049,6 @@ double vo_get_delay(struct vo *vo)
res += (in->current_frame->num_vsyncs + extra) * in->vsync_interval;
if (!in->current_frame->display_synced)
res = 0;
- if (in->current_frame->num_vsyncs < 1 && !in->rendering)
- res = 0;
}
pthread_mutex_unlock(&in->lock);
return res ? (res - mp_time_us()) / 1e6 : 0;