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/DecoderThread.cxx | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/DecoderThread.cxx') diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx index 4e2c4418a..b3f0e6f36 100644 --- a/src/DecoderThread.cxx +++ b/src/DecoderThread.cxx @@ -40,9 +40,6 @@ #include -#include -#include /* for SEEK_SET */ - static constexpr Domain decoder_thread_domain("decoder_thread"); /** @@ -128,7 +125,7 @@ decoder_stream_decode(const DecoderPlugin &plugin, return true; /* rewind the stream, so each plugin gets a fresh start */ - input_stream->Seek(0, SEEK_SET, IgnoreError()); + input_stream->Rewind(IgnoreError()); decoder.dc.Unlock(); -- cgit v1.2.3