diff options
author | Albin Eldstål-Damlin <laeder.keps@gmail.com> | 2009-12-14 21:46:45 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-12-14 22:18:28 +0100 |
commit | 69391dadda9b759772650b9df62a04b972c8ba5b (patch) | |
tree | f8f40eb31ab12b3b265b6c050d340185c0713410 /src/output_init.c | |
parent | ff3393ebf1e581d97bfcce9045a60f3700688450 (diff) | |
download | mpd-69391dadda9b759772650b9df62a04b972c8ba5b.tar.gz mpd-69391dadda9b759772650b9df62a04b972c8ba5b.tar.xz mpd-69391dadda9b759772650b9df62a04b972c8ba5b.zip |
Proper error reporting from filter_config
Diffstat (limited to 'src/output_init.c')
-rw-r--r-- | src/output_init.c | 11 |
1 files changed, 10 insertions, 1 deletions
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(); |