diff options
author | wm4 <wm4@nowhere> | 2015-01-12 13:04:21 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-12 13:04:21 +0100 |
commit | 8336563d237a2fe78bafda9e8690e812f28fa5aa (patch) | |
tree | 4a69668a7993cff26dd635c9eb5de057eed8d656 /demux/packet.c | |
parent | 3459130e5c5873f3db794a98d63d261e483e23dc (diff) |
player: check sufficient track selection before destroying VO
mpv needs at least an audio or video track to play something. If the
track selection is basically insufficient, the player will immediately
skip to the next file (or quit).
One slightly annoying thing might be that trying to play a subtitle file
will close the VO window, and then go to the next file immediately (so
"mpv 1.mkv 2.srt 3.mkv" would flash the video window when 2.srt is
skipped). Move the check to before the video window is possibly closed.
This is a minor cosmetic issue; one can use --force-window to avoid
closing the video window at all.
Fixes #1459.
Diffstat (limited to 'demux/packet.c')
0 files changed, 0 insertions, 0 deletions