aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderThread.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-10-23 21:22:29 +0200
committerMax Kellermann <max@duempel.org>2013-10-23 21:58:44 +0200
commitf1027ed198535ce16cfb9c83ac802788ec750488 (patch)
treebc8787407538be55e8bf70d3413644a8a8f4abf4 /src/DecoderThread.cxx
parentfe3c5e4e8e3c46d57cb49c2dd6c4c2dc814a797b (diff)
downloadmpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.gz
mpd-f1027ed198535ce16cfb9c83ac802788ec750488.tar.xz
mpd-f1027ed198535ce16cfb9c83ac802788ec750488.zip
InputStream: add method Rewind()
Diffstat (limited to '')
-rw-r--r--src/DecoderThread.cxx5
1 files changed, 1 insertions, 4 deletions
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 <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();