Commit dc085e0b authored by Max Kellermann's avatar Max Kellermann

input/rewind: work around assertion failure

Caused by commit 0b4fa41a
parent 7c951734
...@@ -194,7 +194,7 @@ InputStream * ...@@ -194,7 +194,7 @@ InputStream *
input_rewind_open(InputStream *is) input_rewind_open(InputStream *is)
{ {
assert(is != nullptr); assert(is != nullptr);
assert(is->GetOffset() == 0); assert(!is->IsReady() || is->GetOffset() == 0);
if (is->IsReady() && is->IsSeekable()) if (is->IsReady() && is->IsSeekable())
/* seekable resources don't need this plugin */ /* seekable resources don't need this plugin */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment