aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/output_control.h2
-rw-r--r--src/output_init.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/src/output_control.h b/src/output_control.h
index c187a8c91..390c2b889 100644
--- a/src/output_control.h
+++ b/src/output_control.h
@@ -27,7 +27,7 @@ struct audio_format;
struct tag;
struct config_param;
-int
+bool
audio_output_init(struct audio_output *ao, const struct config_param *param);
bool
diff --git a/src/output_init.c b/src/output_init.c
index 26af73fd3..ab26e76ef 100644
--- a/src/output_init.c
+++ b/src/output_init.c
@@ -41,7 +41,7 @@
if(bp) str = bp->value; \
}
-int
+bool
audio_output_init(struct audio_output *ao, const struct config_param *param)
{
const char *name = NULL;
@@ -82,7 +82,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
if (plugin == NULL) {
g_warning("Unable to detect an audio device\n");
- return 0;
+ return false;
}
name = "default detected output";
@@ -116,7 +116,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
format ? &ao->config_audio_format : NULL,
param);
if (ao->data == NULL)
- return 0;
+ return false;
- return 1;
+ return true;
}