mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
mplayer: fix cleanup if VO initialization fails
Just specifying a VO that doesn't exist would make it crash.
Regression caused by commit 6a0408b
.
This commit is contained in:
parent
89fced63b8
commit
c3ea08a2d7
@ -2457,6 +2457,7 @@ int reinit_video_chain(struct MPContext *mpctx)
|
||||
err_out:
|
||||
no_video:
|
||||
uninit_player(mpctx, INITIALIZED_VCODEC | (opts->force_vo ? 0 : INITIALIZED_VO));
|
||||
cleanup_demux_stream(mpctx, STREAM_VIDEO);
|
||||
handle_force_window(mpctx, true);
|
||||
mp_tmsg(MSGT_CPLAYER, MSGL_INFO, "Video: no video\n");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user