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:
		| @@ -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; | ||||
| 		} | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Max Kellermann
					Max Kellermann