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:
Max Kellermann 2008-11-03 21:49:47 +01:00
parent 75d2a39768
commit 095a62a1d0

View File

@ -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;
}
}