player/command: handle force window on runtime vo changes
Without this, changing the vo at runtime with --force-window --idle would kill the vo.
This commit is contained in:
1 parent
69c4ed585d
commit
00533ccdae
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user