Commit fac610d4 authored by Max Kellermann's avatar Max Kellermann

decoder/API: decoder_open_uri() can throw StopDecoder

parent 93209da1
......@@ -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);
}
......
......@@ -118,8 +118,9 @@ void
decoder_seek_error(Decoder &decoder);
/**
* Open a new #InputStream and wait until it's ready. Can get
* cancelled by DecoderCommand::STOP (returns nullptr).
* Open a new #InputStream and wait until it's ready.
*
* Throws #StopDecoder if DecoderCommand::STOP was received.
*
* Throws std::runtime_error on error.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment