mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
vo: take normal drop path when dropping in display-sync mode
I hope there wasn't a deeper reason for exiting early.
This commit is contained in:
parent
532f05b83d
commit
a1315c7644
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user