aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-11-04 09:44:50 +0100
committerMax Kellermann <max@duempel.org>2009-11-04 09:44:50 +0100
commita027bdf1187db8fb9e3cf23e223e5f85345bf9ee (patch)
treef4a3ce1568f172ced2e77d6f2179625de6f7a53d /src/decoder_thread.c
parentc043bf0f6305876725f7686fc2a617a469f9cca1 (diff)
downloadmpd-a027bdf1187db8fb9e3cf23e223e5f85345bf9ee.tar.gz
mpd-a027bdf1187db8fb9e3cf23e223e5f85345bf9ee.tar.xz
mpd-a027bdf1187db8fb9e3cf23e223e5f85345bf9ee.zip
decoder_thread: initialize decoder_control.quit
If left uninitialized, then the decoder thread quits spuriously.
Diffstat (limited to 'src/decoder_thread.c')
-rw-r--r--src/decoder_thread.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c
index 175f343e0..602c48064 100644
--- a/src/decoder_thread.c
+++ b/src/decoder_thread.c
@@ -333,6 +333,8 @@ decoder_thread_start(struct decoder_control *dc)
assert(dc->thread == NULL);
+ dc->quit = false;
+
dc->thread = g_thread_create(decoder_task, dc, true, &e);
if (dc->thread == NULL)
g_error("Failed to spawn decoder task: %s", e->message);