decoder/API: decoder_open_uri() can throw StopDecoder

This commit is contained in:
Max Kellermann
2016-11-17 22:48:18 +01:00
parent 93209da176
commit fac610d47b
2 changed files with 4 additions and 3 deletions

View File

@@ -275,7 +275,7 @@ decoder_open_uri(Decoder &decoder, const char *uri)
return is;
if (dc.command == DecoderCommand::STOP)
return nullptr;
throw StopDecoder();
cond.wait(mutex);
}