diff options
author | wm4 <wm4@nowhere> | 2014-08-23 11:39:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-08-23 11:39:07 +0200 |
commit | 21f52aeeba2e8462c609006317251417ad9f3db3 (patch) | |
tree | c9f8a2a5258c80475a834ceab5a8c4656c820495 /player/audio.c | |
parent | b55e09307581e45746f11a2eab2409a389c79012 (diff) | |
download | mpv-21f52aeeba2e8462c609006317251417ad9f3db3.tar.bz2 mpv-21f52aeeba2e8462c609006317251417ad9f3db3.tar.xz |
audio: minor improvements to timeline switching
In theory, timestamps can be negative, so we shouldn't just return -1
as special value.
Remove the separate code for clearing decode buffers; use the same code
that is used for normal seek reset.
Diffstat (limited to 'player/audio.c')
-rw-r--r-- | player/audio.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/player/audio.c b/player/audio.c index 3a691fed09..a044a422cc 100644 --- a/player/audio.c +++ b/player/audio.c @@ -537,10 +537,3 @@ void clear_audio_output_buffers(struct MPContext *mpctx) mp_audio_buffer_clear(mpctx->ao_buffer); } } - -// Drop decoded data queued for filtering. -void clear_audio_decode_buffers(struct MPContext *mpctx) -{ - if (mpctx->d_audio) - mp_audio_buffer_clear(mpctx->d_audio->decode_buffer); -} |