From 65db3291b327797ac7d09ba2ea36db9ba5383f18 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 28 Oct 2014 16:19:07 +0100 Subject: client API: better error reporting Give somewhat more information on playback failure. --- player/misc.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'player/misc.c') diff --git a/player/misc.c b/player/misc.c index 5355e23f41..c178ec7b39 100644 --- a/player/misc.c +++ b/player/misc.c @@ -191,8 +191,11 @@ void error_on_track(struct MPContext *mpctx, struct track *track) MP_INFO(mpctx, "Video: no video\n"); if (!mpctx->current_track[0][STREAM_AUDIO] && !mpctx->current_track[0][STREAM_VIDEO]) - mpctx->stop_play = PT_NEXT_ENTRY; - mpctx->error_playing = true; + { + mpctx->stop_play = PT_ERROR; + if (mpctx->error_playing >= 0) + mpctx->error_playing = MPV_ERROR_NOTHING_TO_PLAY; + } mpctx->sleeptime = 0; } } -- cgit v1.2.3