diff options
author | wm4 <wm4@nowhere> | 2014-04-18 00:03:49 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-18 00:03:49 +0200 |
commit | e6f4c50f46ae059ce7debc1ad02dbcccdebfad16 (patch) | |
tree | dd137e301fdf1762e4790f95f74bce4bd8a493bb /player | |
parent | 1b398e99f735e141d88186d4e1a722b9a00f4b9a (diff) | |
download | mpv-e6f4c50f46ae059ce7debc1ad02dbcccdebfad16.tar.bz2 mpv-e6f4c50f46ae059ce7debc1ad02dbcccdebfad16.tar.xz |
player: fix audio EOF check on --no-audio
This considered audio to never reach EOF when audio was disabled,
instead of always being EOF.
Diffstat (limited to 'player')
-rw-r--r-- | player/playloop.c | 2 |
1 files changed, 1 insertions, 1 deletions
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){ |