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