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);
|
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();
|
||||||
|
Loading…
Reference in New Issue
Block a user