diff options
author | wm4 <wm4@nowhere> | 2015-08-23 21:41:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-08-23 21:41:09 +0200 |
commit | 63dc0085c8c6c543e21e279751a00376793efaf4 (patch) | |
tree | ee27df987c73164283f1bb2457d0253df9681a1e | |
parent | fb5368b159effc91c3d3a7619892c49266c19407 (diff) |
audio: don't sleep when finishing audio resync
This should avoid unnecessary sleeping when audio playback start resync
has finished and goes into the normal playback state.
This is tricky; see e.g. commit 402fe381.
-rw-r--r-- | player/audio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/player/audio.c b/player/audio.c index ab4e50b1b9..92c4bbae19 100644 --- a/player/audio.c +++ b/player/audio.c @@ -568,7 +568,7 @@ void fill_audio_out_buffers(struct MPContext *mpctx, double endpts) mpctx->audio_status = STATUS_FILLING; if (status != AD_OK && !mp_audio_buffer_samples(mpctx->ao_buffer)) mpctx->audio_status = STATUS_EOF; - if (working) + if (working || end_sync) mpctx->sleeptime = 0; return; // continue on next iteration } |