mirror of https://github.com/mpv-player/mpv
audio: drain ao on EOF
This gives pull-based AOs the chance to play all queued audio. Also it will make sure that the audio has finished playing so we can reinitialize the AO if format changes are necessary. Fixes #10018 Fixes #9835 Fixes #8904
This commit is contained in:
parent
25fa1b0b45
commit
52aed495cb
|
@ -945,6 +945,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx)
|
|||
(opts->gapless_audio && !ao_untimed(ao_c->ao))))
|
||||
{
|
||||
MP_VERBOSE(mpctx, "audio EOF reached\n");
|
||||
ao_drain(mpctx->ao);
|
||||
mpctx->audio_status = STATUS_EOF;
|
||||
mp_wakeup_core(mpctx);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue