Reapply "video: remove another redundant wakeup"

This reverts commit 44c398c3e1.
This commit is contained in:
Kacper Michajłow
2024-02-04 16:35:13 +01:00
committed by Dudemanguy
parent 0bf4da0f5e
commit a329bb546c
3 changed files with 45 additions and 20 deletions

View File

@@ -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};