mirror of
https://github.com/mpv-player/mpv.git
synced 2025-12-28 05:33:14 +00:00
player/command: fix --force-window=yes acting like immediate
player/main.c runs all option callbacks with a flag on init, so since
a5937ac7e3 which added UPDATE_VO, if --force-window=yes is passed, the
VO is immediately initialized, as if --force-window=immediate was
passed. Fix this by not running the UPDATE_VO code when there is no
video output.
This commit is contained in:
@@ -7395,7 +7395,7 @@ void mp_option_change_callback(void *ctx, struct m_config_option *co, int flags,
|
||||
mpctx->ipc_ctx = mp_init_ipc(mpctx->clients, mpctx->global);
|
||||
}
|
||||
|
||||
if (flags & UPDATE_VO) {
|
||||
if (flags & UPDATE_VO && mpctx->video_out) {
|
||||
struct track *track = mpctx->current_track[0][STREAM_VIDEO];
|
||||
uninit_video_out(mpctx);
|
||||
handle_force_window(mpctx, true);
|
||||
|
||||
Reference in New Issue
Block a user