mirror of https://github.com/mpv-player/mpv
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:
parent
fb5368b159
commit
63dc0085c8
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue