player: do not destroy VO immediately if there is no video track

Commit f1d161d55f 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.
This commit is contained in:
wm4 2017-08-14 12:19:54 +02:00
parent cacc6db2a3
commit b6d79deebb
1 changed files with 0 additions and 1 deletions

View File

@ -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);