diff options
author | wm4 <wm4@nowhere> | 2015-01-30 23:54:43 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-01-30 23:54:43 +0100 |
commit | a169a2fb7952f26face59828850ec622a69afe23 (patch) | |
tree | 2082890c8b523ff78ddd4b24a435caf83def5036 /player | |
parent | 48f96f43ec1cf4f91619540a154b51afb83def41 (diff) | |
download | mpv-a169a2fb7952f26face59828850ec622a69afe23.tar.bz2 mpv-a169a2fb7952f26face59828850ec622a69afe23.tar.xz |
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.
Diffstat (limited to 'player')
-rw-r--r-- | player/audio.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/player/audio.c b/player/audio.c index d7da26d573..5e0497c84e 100644 --- a/player/audio.c +++ b/player/audio.c @@ -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); |