History

audio: report EOF also for untimed AO mode

Kacper Michajłow committed 2 years ago

Commit 552c4551 parent aa067f51 file · +1 −2Browse files

Unified · Split

player/audio.c+1−2
@@ -967,8 +967,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx) · 966 unmodified lines
967967 if (mpctx->audio_status == STATUS_DRAINING) {
968968 // Wait until the AO has played all queued data. In the gapless case,
969969 // we trigger EOF immediately, and let it play asynchronously.
970− if (!ao_c->ao || (!ao_is_playing(ao_c->ao) ||
971− (opts->gapless_audio && !ao_untimed(ao_c->ao))))
970+ if (!ao_c->ao || (!ao_is_playing(ao_c->ao) || opts->gapless_audio))
972971 {
973972 MP_VERBOSE(mpctx, "audio EOF reached\n");
974973 mpctx->audio_status = STATUS_EOF;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t