From 095a62a1d0cae1b2bf00ef53a3c248e532be3924 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 3 Nov 2008 21:49:47 +0100 Subject: decoder: update dc.error after input stream failure dc.error wasn't updated when the input stream failed to initialize. --- src/decoder_thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 5a9d854e8..7c6f649a3 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -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; } } -- cgit v1.2.3