aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-07-11 23:23:13 +0200
committerMax Kellermann <max@duempel.org>2014-07-12 00:17:30 +0200
commit47e8fcf37e775b0069f8facb9544520f6ca11414 (patch)
tree3be677c5f68ebb8fc3af0151c79e5fd721df993c /src
parent5958b78459776f1aecf284d97dbb21992c1e2d29 (diff)
downloadmpd-47e8fcf37e775b0069f8facb9544520f6ca11414.tar.gz
mpd-47e8fcf37e775b0069f8facb9544520f6ca11414.tar.xz
mpd-47e8fcf37e775b0069f8facb9544520f6ca11414.zip
decoder/faad: remove unnecessary read
Eliminate some overhead when the caller doesn't need the buffer.
Diffstat (limited to '')
-rw-r--r--src/decoder/FaadDecoderPlugin.cxx2
1 files changed, 0 insertions, 2 deletions
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) {