mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 00:42:57 +00:00
player: deselect video track if initialization fails
This didn't have any consequences, other than suddenly reinitializing video when it works again (such as with EDL timeline mixing video and audio-only files).
This commit is contained in:
parent
16233bc546
commit
904ae96795
@ -165,6 +165,7 @@ err_out:
|
||||
no_video:
|
||||
uninit_player(mpctx, INITIALIZED_VCODEC | (opts->force_vo ? 0 : INITIALIZED_VO));
|
||||
cleanup_demux_stream(mpctx, STREAM_VIDEO);
|
||||
mpctx->current_track[STREAM_VIDEO] = NULL;
|
||||
handle_force_window(mpctx, true);
|
||||
MP_INFO(mpctx, "Video: no video\n");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user