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.
This commit is contained in:
wm4 2015-08-23 21:41:09 +02:00
parent fb5368b159
commit 63dc0085c8
1 changed files with 1 additions and 1 deletions

View File

@ -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
}