From e6f4c50f46ae059ce7debc1ad02dbcccdebfad16 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 18 Apr 2014 00:03:49 +0200 Subject: player: fix audio EOF check on --no-audio This considered audio to never reach EOF when audio was disabled, instead of always being EOF. --- player/playloop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/player/playloop.c b/player/playloop.c index 31e8570589..204a19241f 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -1223,7 +1223,7 @@ void run_playloop(struct MPContext *mpctx) * buffered. */ if ((mpctx->d_audio || mpctx->d_video) && !audio_left && !video_left - && (opts->gapless_audio || (mpctx->d_audio && ao_eof_reached(mpctx->ao))) + && (opts->gapless_audio || !mpctx->d_audio || ao_eof_reached(mpctx->ao)) && (!mpctx->paused || was_restart)) { if (end_is_chapter) { mp_seek(mpctx, (struct seek_params){ -- cgit v1.2.3