From f54bcc1f16f815fb507ac8a8ffd7913f686969d2 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2013 13:38:13 +0200 Subject: FilterPlugin: pass config_param reference --- src/OutputInit.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/OutputInit.cxx') diff --git a/src/OutputInit.cxx b/src/OutputInit.cxx index 4ba33be1d..053e1e633 100644 --- a/src/OutputInit.cxx +++ b/src/OutputInit.cxx @@ -183,7 +183,8 @@ ao_base_init(struct audio_output *ao, if (config_get_bool(CONF_VOLUME_NORMALIZATION, false)) { Filter *normalize_filter = - filter_new(&normalize_filter_plugin, NULL, NULL); + filter_new(&normalize_filter_plugin, config_param(), + nullptr); assert(normalize_filter != NULL); filter_chain_append(*ao->filter, "normalize", @@ -227,13 +228,13 @@ audio_output_setup(struct audio_output *ao, const config_param ¶m, if (strcmp(replay_gain_handler, "none") != 0) { ao->replay_gain_filter = filter_new(&replay_gain_filter_plugin, - ¶m, NULL); + param, NULL); assert(ao->replay_gain_filter != NULL); ao->replay_gain_serial = 0; ao->other_replay_gain_filter = filter_new(&replay_gain_filter_plugin, - ¶m, NULL); + param, NULL); assert(ao->other_replay_gain_filter != NULL); ao->other_replay_gain_serial = 0; @@ -271,7 +272,8 @@ audio_output_setup(struct audio_output *ao, const config_param ¶m, /* the "convert" filter must be the last one in the chain */ - ao->convert_filter = filter_new(&convert_filter_plugin, NULL, NULL); + ao->convert_filter = filter_new(&convert_filter_plugin, config_param(), + nullptr); assert(ao->convert_filter != NULL); filter_chain_append(*ao->filter, "convert", ao->convert_filter); -- cgit v1.2.3