Commit 746aa6cc authored by Max Kellermann's avatar Max Kellermann

decoder/API: check for errors in decoder_read()

parent fac610d4
......@@ -292,6 +292,10 @@ decoder_check_cancel_read(const Decoder *decoder)
if (decoder == nullptr)
return false;
if (decoder->error)
/* this translates to DecoderCommand::STOP */
return true;
const DecoderControl &dc = decoder->dc;
if (dc.command == DecoderCommand::NONE)
return false;
......
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