Unified · Split
| @@ -967,8 +967,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx) · 966 unmodified lines | |||
| 967 | if (mpctx->audio_status == STATUS_DRAINING) { | 967 | if (mpctx->audio_status == STATUS_DRAINING) { |
| 968 | // Wait until the AO has played all queued data. In the gapless case, | 968 | // Wait until the AO has played all queued data. In the gapless case, |
| 969 | // we trigger EOF immediately, and let it play asynchronously. | 969 | // we trigger EOF immediately, and let it play asynchronously. |
| 970 | if (!ao_c->ao || (!ao_is_playing(ao_c->ao) || | 970 | if (!ao_c->ao || (!ao_is_playing(ao_c->ao) || opts->gapless_audio)) |
| 971 | (opts->gapless_audio && !ao_untimed(ao_c->ao)))) | ||
| 972 | { | 971 | { |
| 973 | MP_VERBOSE(mpctx, "audio EOF reached\n"); | 972 | MP_VERBOSE(mpctx, "audio EOF reached\n"); |
| 974 | mpctx->audio_status = STATUS_EOF; | 973 | mpctx->audio_status = STATUS_EOF; |