aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_control.c4
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);