diff options
author | Max Kellermann <max@duempel.org> | 2014-05-21 18:34:29 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-05-21 18:47:22 +0200 |
commit | 542e7feba88295d03ef463b3f1726753fa91f72d (patch) | |
tree | 451618e24593db5d3873f6a59df2270154f153e4 /src/input/plugins | |
parent | dc085e0bd202932c08505196eedd768c87b34d33 (diff) | |
download | mpd-542e7feba88295d03ef463b3f1726753fa91f72d.tar.gz mpd-542e7feba88295d03ef463b3f1726753fa91f72d.tar.xz mpd-542e7feba88295d03ef463b3f1726753fa91f72d.zip |
input/rewind: include cleanup
Diffstat (limited to 'src/input/plugins')
-rw-r--r-- | src/input/plugins/RewindInputPlugin.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/input/plugins/RewindInputPlugin.cxx b/src/input/plugins/RewindInputPlugin.cxx index 5634aae7a..2c4679cbe 100644 --- a/src/input/plugins/RewindInputPlugin.cxx +++ b/src/input/plugins/RewindInputPlugin.cxx @@ -20,11 +20,9 @@ #include "config.h" #include "RewindInputPlugin.hxx" #include "../InputStream.hxx" -#include "../InputPlugin.hxx" #include <assert.h> #include <string.h> -#include <stdio.h> class RewindInputStream final : public InputStream { InputStream *input; @@ -161,13 +159,13 @@ RewindInputStream::Read(void *ptr, size_t read_size, Error &error) } inline bool -RewindInputStream::Seek(InputPlugin::offset_type new_offset, int whence, +RewindInputStream::Seek(offset_type new_offset, int whence, Error &error) { assert(IsReady()); if (whence == SEEK_SET && tail > 0 && - new_offset <= (InputPlugin::offset_type)tail) { + new_offset <= (offset_type)tail) { /* buffered seek */ assert(!ReadingFromBuffer() || |