From b6d79deebbbb9aa95b176ad099abd5695d0a2366 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 14 Aug 2017 12:19:54 +0200 Subject: player: do not destroy VO immediately if there is no video track Commit f1d161d55f45 accidentally added the handle_force_window() call if no track is selected. This was OK, but breaks something like "mpv *", where some files are not playable (like subtitle files) - the unplayable files would remove and recreate the VO window, which is annoying. Just drop the call again. --- player/video.c | 1 - 1 file changed, 1 deletion(-) (limited to 'player/video.c') diff --git a/player/video.c b/player/video.c index 5d5f7f1fac..96e08ae815 100644 --- a/player/video.c +++ b/player/video.c @@ -461,7 +461,6 @@ void reinit_video_chain(struct MPContext *mpctx) struct track *track = mpctx->current_track[0][STREAM_VIDEO]; if (!track || !track->stream) { error_on_track(mpctx, track); - handle_force_window(mpctx, true); return; } reinit_video_chain_src(mpctx, track); -- cgit v1.2.3