mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-26 04:59:30 +08: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:
+1
-4
@@ -474,10 +474,7 @@ static void do_fill_audio_out_buffers(struct MPContext *mpctx, double endpts)
|
||||
mpctx->video_status != STATUS_EOF && mpctx->delay > 0)
|
||||
return;
|
||||
|
||||
// if paused, just initialize things (audio format & pts)
|
||||
int playsize = 1;
|
||||
if (!mpctx->paused)
|
||||
playsize = ao_get_space(mpctx->ao);
|
||||
int playsize = ao_get_space(mpctx->ao);
|
||||
|
||||
int skip = 0;
|
||||
bool sync_known = get_sync_samples(mpctx, &skip);
|
||||
|
||||
Reference in New Issue
Block a user