1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-09 19:22:05 +00:00

player: force VO reconfig when unselecting video track

Switches to a black window if --force-window is used while coverart
"video" is playing.
This commit is contained in:
wm4 2016-04-23 17:24:03 +02:00
parent 786f37ae1c
commit 47e7676e7e

View File

@ -452,7 +452,7 @@ void mp_switch_track_n(struct MPContext *mpctx, int order, enum stream_type type
if (type == STREAM_VIDEO) { if (type == STREAM_VIDEO) {
uninit_video_chain(mpctx); uninit_video_chain(mpctx);
if (!track) if (!track)
handle_force_window(mpctx, false); handle_force_window(mpctx, true);
} else if (type == STREAM_AUDIO) { } else if (type == STREAM_AUDIO) {
clear_audio_output_buffers(mpctx); clear_audio_output_buffers(mpctx);
uninit_audio_chain(mpctx); uninit_audio_chain(mpctx);