diff options
author | wm4 <wm4@nowhere> | 2013-11-19 22:16:56 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-19 22:16:56 +0100 |
commit | 904ae967959b1edf72de44c3a5f78bdb096ad330 (patch) | |
tree | a1e6240d281e445f33e1a77b54310fa9ec63f406 /mpvcore | |
parent | 16233bc5468110640797a10ad8538b93ab805298 (diff) | |
download | mpv-904ae967959b1edf72de44c3a5f78bdb096ad330.tar.bz2 mpv-904ae967959b1edf72de44c3a5f78bdb096ad330.tar.xz |
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).
Diffstat (limited to 'mpvcore')
-rw-r--r-- | mpvcore/player/video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mpvcore/player/video.c b/mpvcore/player/video.c index aec5d1c703..66c6216d30 100644 --- a/mpvcore/player/video.c +++ b/mpvcore/player/video.c @@ -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; |