aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_thread.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-01-07 23:55:13 +0100
committerMax Kellermann <max@duempel.org>2009-01-07 23:55:13 +0100
commitbf058f978a51333e3881ad8c046ccc00bff8ef6c (patch)
tree2cc25534da6adc9c5d8fac9b032f0abda8a1e047 /src/output_thread.c
parent405c102c17bdc0077561dc142c495d47cdf8179d (diff)
downloadmpd-bf058f978a51333e3881ad8c046ccc00bff8ef6c.tar.gz
mpd-bf058f978a51333e3881ad8c046ccc00bff8ef6c.tar.xz
mpd-bf058f978a51333e3881ad8c046ccc00bff8ef6c.zip
output: join the output thread after sending the KILL command
Be sure that the output thread has quite before we start destructing the output object.
Diffstat (limited to 'src/output_thread.c')
-rw-r--r--src/output_thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output_thread.c b/src/output_thread.c
index 1467d26a8..3d5fe57d6 100644
--- a/src/output_thread.c
+++ b/src/output_thread.c
@@ -175,6 +175,6 @@ void audio_output_thread_start(struct audio_output *ao)
assert(ao->command == AO_COMMAND_NONE);
- if (!(ao->thread = g_thread_create(audio_output_task, ao, FALSE, &e)))
+ if (!(ao->thread = g_thread_create(audio_output_task, ao, true, &e)))
g_error("Failed to spawn output task: %s\n", e->message);
}