From 19d21103e564d05d830aaa6d60a3a7fa1f122dca Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 10 Oct 2014 15:15:58 +0200 Subject: 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. --- player/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player/audio.c b/player/audio.c index e8fa4f3592..e5cdd671e5 100644 --- a/player/audio.c +++ b/player/audio.c @@ -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 -- cgit v1.2.3