Commit 095a62a1 authored by Max Kellermann's avatar Max Kellermann

decoder: update dc.error after input stream failure

dc.error wasn't updated when the input stream failed to initialize.
parent 75d2a397
......@@ -90,6 +90,7 @@ static void decoder_run(void)
ret = input_stream_buffer(&input_stream);
if (ret < 0) {
input_stream_close(&input_stream);
dc.error = DECODE_ERROR_FILE;
return;
}
}
......
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