diff options
author | Thomas Jansen <mithi@mithi.net> | 2008-12-28 22:09:42 +0100 |
---|---|---|
committer | Thomas Jansen <mithi@mithi.net> | 2008-12-28 22:09:42 +0100 |
commit | 36b8968e36959451c03a7ca8b210d01114a3ee56 (patch) | |
tree | 8d9aa789baf8945bcda8e9a7fcfa1602b88b2871 /src/output_control.c | |
parent | 28128dc4e3c0cd581e868404034aba120c8b56c1 (diff) | |
download | mpd-36b8968e36959451c03a7ca8b210d01114a3ee56.tar.gz mpd-36b8968e36959451c03a7ca8b210d01114a3ee56.tar.xz mpd-36b8968e36959451c03a7ca8b210d01114a3ee56.zip |
output: migrate from pthread to glib threads
Diffstat (limited to '')
-rw-r--r-- | src/output_control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output_control.c b/src/output_control.c index 4bf398d0a..c0e7d001a 100644 --- a/src/output_control.c +++ b/src/output_control.c @@ -77,7 +77,7 @@ audio_output_open(struct audio_output *audioOutput, audio_output_close(audioOutput); } - if (audioOutput->thread == 0) + if (audioOutput->thread == NULL) audio_output_thread_start(audioOutput); if (!audioOutput->open) @@ -135,7 +135,7 @@ void audio_output_close(struct audio_output *audioOutput) void audio_output_finish(struct audio_output *audioOutput) { audio_output_close(audioOutput); - if (audioOutput->thread != 0) + if (audioOutput->thread != NULL) ao_command(audioOutput, AO_COMMAND_KILL); if (audioOutput->plugin->finish) audioOutput->plugin->finish(audioOutput->data); |