From f1027ed198535ce16cfb9c83ac802788ec750488 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 23 Oct 2013 21:22:29 +0200 Subject: InputStream: add method Rewind() --- src/decoder/FlacDecoderPlugin.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/decoder/FlacDecoderPlugin.cxx') 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 #include -#include - -#include -#include #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); } -- cgit v1.2.3