summaryrefslogtreecommitdiff
path: root/src/input/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-05-21 18:38:08 +0200
committerMax Kellermann <max@duempel.org>2014-05-21 18:47:12 +0200
commitdc085e0bd202932c08505196eedd768c87b34d33 (patch)
tree3601d763d189b2ebf44b474d224ca73242235385 /src/input/plugins
parent7c9517343cbf15c417cac6079c773552f7c4bfbf (diff)
input/rewind: work around assertion failure
Caused by commit 0b4fa41a
Diffstat (limited to 'src/input/plugins')
-rw-r--r--src/input/plugins/RewindInputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/input/plugins/RewindInputPlugin.cxx b/src/input/plugins/RewindInputPlugin.cxx
index eee395a8b..5634aae7a 100644
--- a/src/input/plugins/RewindInputPlugin.cxx
+++ b/src/input/plugins/RewindInputPlugin.cxx
@@ -194,7 +194,7 @@ InputStream *
input_rewind_open(InputStream *is)
{
assert(is != nullptr);
- assert(is->GetOffset() == 0);
+ assert(!is->IsReady() || is->GetOffset() == 0);
if (is->IsReady() && is->IsSeekable())
/* seekable resources don't need this plugin */