aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-11-03 21:49:47 +0100
committerMax Kellermann <max@duempel.org>2008-11-03 21:49:47 +0100
commit095a62a1d0cae1b2bf00ef53a3c248e532be3924 (patch)
treea6ee5ef31a3179d992efb28878b16894f5e92556 /src
parent75d2a3976877ef609793ca888c633f37418669a3 (diff)
downloadmpd-095a62a1d0cae1b2bf00ef53a3c248e532be3924.tar.gz
mpd-095a62a1d0cae1b2bf00ef53a3c248e532be3924.tar.xz
mpd-095a62a1d0cae1b2bf00ef53a3c248e532be3924.zip
decoder: update dc.error after input stream failure
dc.error wasn't updated when the input stream failed to initialize.
Diffstat (limited to '')
-rw-r--r--src/decoder_thread.c1
1 files changed, 1 insertions, 0 deletions
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;
}
}