From 69391dadda9b759772650b9df62a04b972c8ba5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Albin=20Eldst=C3=A5l-Damlin?= Date: Mon, 14 Dec 2009 21:46:45 +0100 Subject: Proper error reporting from filter_config --- src/output_init.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'src/output_init.c') diff --git a/src/output_init.c b/src/output_init.c index f4025fbfe..ab5257829 100644 --- a/src/output_init.c +++ b/src/output_init.c @@ -193,9 +193,18 @@ audio_output_init(struct audio_output *ao, const struct config_param *param, ao->filter = filter_chain_new(); assert(ao->filter != NULL); filter_chain_parse(ao->filter, - config_get_block_string(param, AUDIO_FILTERS, "") + config_get_block_string(param, AUDIO_FILTERS, ""), + &error ); + // It's not really fatal - Part of the filter chain has been set up already + // and even an empty one will work (if only with unexpected behaviour) + if (error != NULL) { + g_warning("Failed to initialize filter chain for '%s': %s", + ao->name, error->message); + g_error_free(error); + } + ao->thread = NULL; ao->command = AO_COMMAND_NONE; ao->mutex = g_mutex_new(); -- cgit v1.2.3