diff options
Diffstat (limited to 'player/misc.c')
-rw-r--r-- | player/misc.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; } } |