Commit 4926763f authored by Max Kellermann's avatar Max Kellermann

decoder/Bridge: call InputStream::Check() before returning

parent a19eee78
......@@ -369,8 +369,10 @@ DecoderBridge::OpenUri(const char *uri)
const std::lock_guard<Mutex> lock(mutex);
while (true) {
is->Update();
if (is->IsReady())
if (is->IsReady()) {
is->Check();
return is;
}
if (dc.command == DecoderCommand::STOP)
throw StopDecoder();
......
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