summaryrefslogtreecommitdiffstats
path: root/player/video.c
diff options
context:
space:
mode:
authorKacper Michajłow <kasper93@gmail.com>2024-02-04 16:35:13 +0100
committerDudemanguy <random342@airmail.cc>2024-02-15 16:39:58 +0000
commita329bb546c0ce553f6fb3fb398b8b728730d63a7 (patch)
treef967f666184ba1746c485b5594961cecc277c51b /player/video.c
parent0bf4da0f5e70bd612644107f1634d2d4763ae4fc (diff)
downloadmpv-a329bb546c0ce553f6fb3fb398b8b728730d63a7.tar.bz2
mpv-a329bb546c0ce553f6fb3fb398b8b728730d63a7.tar.xz
Reapply "video: remove another redundant wakeup"
This reverts commit 44c398c3e133379e01f06c89fd78b6692694849c.
Diffstat (limited to 'player/video.c')
-rw-r--r--player/video.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/video.c b/player/video.c
index 6c93e1f576..6fe9227461 100644
--- a/player/video.c
+++ b/player/video.c
@@ -1173,8 +1173,10 @@ void write_video(struct MPContext *mpctx)
struct mp_image_params *p = &mpctx->next_frames[0]->params;
if (!vo->params || video_reconfig_needed(*p, *vo->params)) {
// Changing config deletes the current frame; wait until it's finished.
- if (vo_still_displaying(vo))
+ if (vo_still_displaying(vo)) {
+ vo_request_wakeup_on_done(vo);
return;
+ }
const struct vo_driver *info = mpctx->video_out->driver;
char extra[20] = {0};