summaryrefslogtreecommitdiffstats
path: root/mpvcore/player/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpvcore/player/video.c')
-rw-r--r--mpvcore/player/video.c1
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;