summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-04-10 01:28:06 +0200
committerwm4 <wm4@nowhere>2020-04-10 01:28:06 +0200
commita1771ed0d451a0af75529429fee2c370671950e4 (patch)
tree75b33d9a796a36f9e4bf5437ed36fa3cc6e0c6f7
parenta2846faa321fdfd57af01a21c2df08e5b5ffb6ca (diff)
downloadmpv-a1771ed0d451a0af75529429fee2c370671950e4.tar.bz2
mpv-a1771ed0d451a0af75529429fee2c370671950e4.tar.xz
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.
-rw-r--r--player/video.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 2e0c8f6460..bae32c3f4e 100644
--- a/player/video.c
+++ b/player/video.c
@@ -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: