summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-08-06 19:25:23 +0200
committerwm4 <wm4@nowhere>2014-08-06 20:30:46 +0200
commitbe64535a4e8eeed123c3c91715863366fefeac82 (patch)
tree67b0b8317177b025efc64b30c09ccb6ce332f339
parent6ec39b464122095fde493a4ed496e8dd932e03c1 (diff)
downloadmpv-be64535a4e8eeed123c3c91715863366fefeac82.tar.bz2
mpv-be64535a4e8eeed123c3c91715863366fefeac82.tar.xz
audio: fix inverted condition
Recent regression. Could perhaps make gapless audio fail to work correctly.
-rw-r--r--player/audio.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/player/audio.c b/player/audio.c
index 46e59a3c9c..55e3ba7c5e 100644
--- a/player/audio.c
+++ b/player/audio.c
@@ -490,12 +490,10 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
audio_eof &= partial_fill;
- if (audio_eof) {
- // With gapless audio, delay this to ao_uninit. There must be only
- // 1 final chunk, and that is handled when calling ao_uninit().
- if (opts->gapless_audio)
- playflags |= AOPLAY_FINAL_CHUNK;
- }
+ // With gapless audio, delay this to ao_uninit. There must be only
+ // 1 final chunk, and that is handled when calling ao_uninit().
+ if (audio_eof && !opts->gapless_audio)
+ playflags |= AOPLAY_FINAL_CHUNK;
if (mpctx->paused)
playsize = 0;