From 542e7feba88295d03ef463b3f1726753fa91f72d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 May 2014 18:34:29 +0200 Subject: input/rewind: include cleanup --- src/input/plugins/RewindInputPlugin.cxx | 6 ++---- 1 file 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 #include -#include 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() || -- cgit v1.2.3