decoder: update dc.error after input stream failure
dc.error wasn't updated when the input stream failed to initialize.
This commit is contained in:
parent
75d2a39768
commit
095a62a1d0
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user