From dc085e0bd202932c08505196eedd768c87b34d33 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 21 May 2014 18:38:08 +0200 Subject: input/rewind: work around assertion failure Caused by commit 0b4fa41a --- src/input/plugins/RewindInputPlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/input') 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 */ -- cgit v1.2.3