mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 23:00:41 +00:00
player: don't treat audio playback restart while paused special
I guess this was supposed to be some sort of optimization, but even though it probably works, it's pretty meaningless and I couldn't measure a difference. One special case killed.
This commit is contained in:
parent
48f96f43ec
commit
a169a2fb79
@ -474,10 +474,7 @@ static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
|||||||
mpctx->video_status != STATUS_EOF && mpctx->delay > 0)
|
mpctx->video_status != STATUS_EOF && mpctx->delay > 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// if paused, just initialize things (audio format & pts)
|
int playsize = ao_get_space(mpctx->ao);
|
||||||
int playsize = 1;
|
|
||||||
if (!mpctx->paused)
|
|
||||||
playsize = ao_get_space(mpctx->ao);
|
|
||||||
|
|
||||||
int skip = 0;
|
int skip = 0;
|
||||||
bool sync_known = get_sync_samples(mpctx, &skip);
|
bool sync_known = get_sync_samples(mpctx, &skip);
|
||||||
|
Loading…
Reference in New Issue
Block a user