diff options
author | Max Kellermann <max@duempel.org> | 2008-11-02 17:10:02 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-11-02 17:10:02 +0100 |
commit | 2124df13909a2413dfc41684323f4cee78283c31 (patch) | |
tree | 0b1b875e475af1f01187cdad83c6662c7e08c5f1 /src/decoder/wavpack_plugin.c | |
parent | 395aa4e847424e74b874ce7e04bcec53e7347925 (diff) | |
download | mpd-2124df13909a2413dfc41684323f4cee78283c31.tar.gz mpd-2124df13909a2413dfc41684323f4cee78283c31.tar.xz mpd-2124df13909a2413dfc41684323f4cee78283c31.zip |
decoder: rewind input stream after try_decode()
The try_decode() method may have read some data from the stream, which
is now lost. To make this data available to other methods, get it
back by rewinding the input stream after each try_decode() invocation.
The ogg and wavpack plugins did this manually and inconsistently; this
code can now be removed.
Diffstat (limited to 'src/decoder/wavpack_plugin.c')
-rw-r--r-- | src/decoder/wavpack_plugin.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/decoder/wavpack_plugin.c b/src/decoder/wavpack_plugin.c index 663bc1f2b..14ccb8630 100644 --- a/src/decoder/wavpack_plugin.c +++ b/src/decoder/wavpack_plugin.c @@ -424,8 +424,6 @@ static bool wavpack_trydecode(struct input_stream *is) return false; WavpackCloseFile(wpc); - /* Seek it back in order to play from the first byte. */ - input_stream_seek(is, 0, SEEK_SET); return true; } |