From 00533ccdae7e77c5e38b1ed748b1a15b8e6dfd5e Mon Sep 17 00:00:00 2001 From: Dudemanguy Date: Tue, 7 Nov 2023 14:05:28 -0600 Subject: [PATCH] player/command: handle force window on runtime vo changes Without this, changing the vo at runtime with --force-window --idle would kill the vo. --- player/command.c | 1 + 1 file changed, 1 insertion(+) diff --git a/player/command.c b/player/command.c index 08947e9205..9c0aa4e2c4 100644 --- a/player/command.c +++ b/player/command.c @@ -7011,6 +7011,7 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags, if (opt_ptr == &opts->vo->video_driver_list) { struct track *track = mpctx->current_track[0][STREAM_VIDEO]; uninit_video_out(mpctx); + handle_force_window(mpctx, true); reinit_video_chain(mpctx); if (track) reselect_demux_stream(mpctx, track, true);