mirror of https://github.com/mpv-player/mpv
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:
parent
cacc6db2a3
commit
b6d79deebb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue