From 47e8fcf37e775b0069f8facb9544520f6ca11414 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 11 Jul 2014 23:23:13 +0200 Subject: decoder/faad: remove unnecessary read Eliminate some overhead when the caller doesn't need the buffer. --- src/decoder/FaadDecoderPlugin.cxx | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/decoder/FaadDecoderPlugin.cxx') diff --git a/src/decoder/FaadDecoderPlugin.cxx b/src/decoder/FaadDecoderPlugin.cxx index 9c8bdb6ef..5ced8a8fb 100644 --- a/src/decoder/FaadDecoderPlugin.cxx +++ b/src/decoder/FaadDecoderPlugin.cxx @@ -192,9 +192,7 @@ faad_song_duration(DecoderBuffer *buffer, InputStream &is) float song_length = adts_song_duration(buffer); is.LockSeek(tagsize, SEEK_SET, IgnoreError()); - decoder_buffer_clear(buffer); - decoder_buffer_fill(buffer); return song_length; } else if (length >= 5 && memcmp(data, "ADIF", 4) == 0) { -- cgit v1.2.3