From 4926763f0066586ff7f0946175702b9fd7966bb1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Apr 2019 10:29:20 +0200 Subject: [PATCH] decoder/Bridge: call InputStream::Check() before returning --- src/decoder/Bridge.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/decoder/Bridge.cxx b/src/decoder/Bridge.cxx index 7ca7c741c..a03f1779c 100644 --- a/src/decoder/Bridge.cxx +++ b/src/decoder/Bridge.cxx @@ -369,8 +369,10 @@ DecoderBridge::OpenUri(const char *uri) const std::lock_guard lock(mutex); while (true) { is->Update(); - if (is->IsReady()) + if (is->IsReady()) { + is->Check(); return is; + } if (dc.command == DecoderCommand::STOP) throw StopDecoder();