diff options
author | Max Kellermann <max@duempel.org> | 2013-10-23 21:22:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-10-23 21:58:44 +0200 |
commit | f1027ed198535ce16cfb9c83ac802788ec750488 (patch) | |
tree | bc8787407538be55e8bf70d3413644a8a8f4abf4 /src/decoder/FlacDecoderPlugin.cxx | |
parent | fe3c5e4e8e3c46d57cb49c2dd6c4c2dc814a797b (diff) | |
download | mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.gz mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.xz mpd-f1027ed198535ce16cfb9c83ac802788ec750488.zip |
InputStream: add method Rewind()
Diffstat (limited to 'src/decoder/FlacDecoderPlugin.cxx')
-rw-r--r-- | src/decoder/FlacDecoderPlugin.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/decoder/FlacDecoderPlugin.cxx b/src/decoder/FlacDecoderPlugin.cxx index 168dfdd19..10a052d3d 100644 --- a/src/decoder/FlacDecoderPlugin.cxx +++ b/src/decoder/FlacDecoderPlugin.cxx @@ -29,10 +29,6 @@ #include <glib.h> #include <assert.h> -#include <unistd.h> - -#include <sys/stat.h> -#include <sys/types.h> #if !defined(FLAC_API_VERSION_CURRENT) || FLAC_API_VERSION_CURRENT <= 7 #error libFLAC is too old @@ -340,7 +336,7 @@ oggflac_decode(Decoder &decoder, struct input_stream *input_stream) /* rewind the stream, because ogg_codec_detect() has moved it */ - input_stream->LockSeek(0, SEEK_SET, IgnoreError()); + input_stream->LockRewind(IgnoreError()); flac_decode_internal(decoder, input_stream, true); } |