From a1315c7644fd8214dad5a4d763fa841d47487cae Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 29 Oct 2015 22:17:43 +0100 Subject: vo: take normal drop path when dropping in display-sync mode I hope there wasn't a deeper reason for exiting early. --- video/out/vo.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/video/out/vo.c b/video/out/vo.c index 48812fbfdd..2926167b1e 100644 --- a/video/out/vo.c +++ b/video/out/vo.c @@ -623,9 +623,6 @@ static bool render_frame(struct vo *vo) goto done; } - if (in->current_frame->display_synced && in->current_frame->num_vsyncs < 1) - goto done; - frame = vo_frame_ref(in->current_frame); assert(frame); @@ -701,8 +698,10 @@ static bool render_frame(struct vo *vo) // Setup parameters for the next time this frame is drawn. ("frame" is the // frame currently drawn, while in->current_frame is the potentially next.) in->current_frame->repeat = true; - if (frame->display_synced) + if (frame->display_synced) { in->current_frame->vsync_offset += in->vsync_interval; + in->dropped_frame |= in->current_frame->num_vsyncs < 1; + } if (in->current_frame->num_vsyncs > 0) in->current_frame->num_vsyncs -= 1; -- cgit v1.2.3