decoder/Bridge: call InputStream::Check() before returning
This commit is contained in:
parent
a19eee78c6
commit
4926763f00
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user