mirror of
https://github.com/mpv-player/mpv
synced 2025-02-20 23:07:02 +00:00
audio: fix inverted condition
Recent regression. Could perhaps make gapless audio fail to work correctly.
This commit is contained in:
parent
6ec39b4641
commit
be64535a4e
@ -490,12 +490,10 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
|||||||
|
|
||||||
audio_eof &= partial_fill;
|
audio_eof &= partial_fill;
|
||||||
|
|
||||||
if (audio_eof) {
|
// With gapless audio, delay this to ao_uninit. There must be only
|
||||||
// With gapless audio, delay this to ao_uninit. There must be only
|
// 1 final chunk, and that is handled when calling ao_uninit().
|
||||||
// 1 final chunk, and that is handled when calling ao_uninit().
|
if (audio_eof && !opts->gapless_audio)
|
||||||
if (opts->gapless_audio)
|
playflags |= AOPLAY_FINAL_CHUNK;
|
||||||
playflags |= AOPLAY_FINAL_CHUNK;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (mpctx->paused)
|
if (mpctx->paused)
|
||||||
playsize = 0;
|
playsize = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user