aboutsummaryrefslogtreecommitdiffstats
path: root/src/output_control.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/output_control.c')
-rw-r--r--src/output_control.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/output_control.c b/src/output_control.c
index 15b4eb19c..9193e92eb 100644
--- a/src/output_control.c
+++ b/src/output_control.c
@@ -51,14 +51,15 @@ static void ao_command_async(struct audio_output *ao,
notify_signal(&ao->notify);
}
-int audio_output_open(struct audio_output *audioOutput,
- const struct audio_format *audioFormat)
+bool
+audio_output_open(struct audio_output *audioOutput,
+ const struct audio_format *audioFormat)
{
- int ret = 0;
+ bool ret = true;
if (audioOutput->open &&
audio_format_equals(audioFormat, &audioOutput->inAudioFormat)) {
- return 0;
+ return true;
}
audioOutput->inAudioFormat = *audioFormat;