player: exit if audio init fails and there's no video

Seems logical. For some reason, the player allows deselecting both audio
and video stream without quitting (a deliberate feature of which I have
no idea why it was added years ago), so this is needed.
This commit is contained in:
wm4 2014-10-10 15:15:58 +02:00
parent 299bf5c017
commit 19d21103e5
1 changed files with 2 additions and 0 deletions

View File

@ -288,6 +288,8 @@ no_audio:
mp_deselect_track(mpctx, track);
if (track)
MP_INFO(mpctx, "Audio: no audio\n");
if (!mpctx->current_track[STREAM_VIDEO])
mpctx->stop_play = PT_NEXT_ENTRY;
}
// Return pts value corresponding to the end point of audio written to the