output: audio_output_init() returns bool
Return true/false instead of 1/0.
This commit is contained in:
parent
9512704055
commit
6aa6def776
@ -27,7 +27,7 @@ struct audio_format;
|
|||||||
struct tag;
|
struct tag;
|
||||||
struct config_param;
|
struct config_param;
|
||||||
|
|
||||||
int
|
bool
|
||||||
audio_output_init(struct audio_output *ao, const struct config_param *param);
|
audio_output_init(struct audio_output *ao, const struct config_param *param);
|
||||||
|
|
||||||
bool
|
bool
|
||||||
|
@ -41,7 +41,7 @@
|
|||||||
if(bp) str = bp->value; \
|
if(bp) str = bp->value; \
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
bool
|
||||||
audio_output_init(struct audio_output *ao, const struct config_param *param)
|
audio_output_init(struct audio_output *ao, const struct config_param *param)
|
||||||
{
|
{
|
||||||
const char *name = NULL;
|
const char *name = NULL;
|
||||||
@ -82,7 +82,7 @@ audio_output_init(struct audio_output *ao, const struct config_param *param)
|
|||||||
|
|
||||||
if (plugin == NULL) {
|
if (plugin == NULL) {
|
||||||
g_warning("Unable to detect an audio device\n");
|
g_warning("Unable to detect an audio device\n");
|
||||||
return 0;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
name = "default detected output";
|
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,
|
format ? &ao->config_audio_format : NULL,
|
||||||
param);
|
param);
|
||||||
if (ao->data == NULL)
|
if (ao->data == NULL)
|
||||||
return 0;
|
return false;
|
||||||
|
|
||||||
return 1;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user