From 63dc0085c8c6c543e21e279751a00376793efaf4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sun, 23 Aug 2015 21:41:09 +0200 Subject: 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. --- player/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 } -- cgit v1.2.3