1
mirror of https://github.com/mpv-player/mpv synced 2024-11-14 22:48:35 +01:00

video: avoid redundant self-wakeup on each queued frame

This should be unnecessary, since the VO itself performs wakeups once a
new frame can be queued. The only situation I can think of where this
might be required are EOF situations (which are always strange).

If I'm wrong, there'll be fun new bugs, probably causing frame drops or
temporary stalls.
This commit is contained in:
wm4 2020-04-10 01:28:06 +02:00
parent a2846faa32
commit a1771ed0d4

View File

@ -1241,7 +1241,8 @@ void write_video(struct MPContext *mpctx)
vo_c->underrun_signaled = false;
mp_wakeup_core(mpctx);
if (mpctx->video_status == STATUS_EOF || mpctx->stop_play)
mp_wakeup_core(mpctx);
return;
error: