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

This commit is contained in:
Max Kellermann 2019-04-05 10:29:20 +02:00
parent a19eee78c6
commit 4926763f00

View File

@ -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();