summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2017-08-14 12:19:54 +0200
committerwm4 <wm4@nowhere>2017-08-14 12:19:54 +0200
commitb6d79deebbbb9aa95b176ad099abd5695d0a2366 (patch)
tree65b3043020debe0f0dc3f26b4b6c85c324b9d66f
parentcacc6db2a3a81415321ff7b80d9043757149b87d (diff)
downloadmpv-b6d79deebbbb9aa95b176ad099abd5695d0a2366.tar.bz2
mpv-b6d79deebbbb9aa95b176ad099abd5695d0a2366.tar.xz
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.
-rw-r--r--player/video.c1
1 files changed, 0 insertions, 1 deletions
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);