input/rewind: work around assertion failure

Caused by commit 0b4fa41a
This commit is contained in:
Max Kellermann 2014-05-21 18:38:08 +02:00
parent 7c9517343c
commit dc085e0bd2

View File

@ -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 */