InputStream: add method Rewind()

This commit is contained in:
Max Kellermann
2013-10-23 21:22:29 +02:00
parent fe3c5e4e8e
commit f1027ed198
9 changed files with 31 additions and 28 deletions

View File

@@ -40,9 +40,6 @@
#include <glib.h>
#include <unistd.h>
#include <stdio.h> /* 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();