aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 13:38:13 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:50 +0200
commitf54bcc1f16f815fb507ac8a8ffd7913f686969d2 (patch)
tree94bfc2ab6640e54fd28e2518c7820ccb89933d7a /test
parentca0d09c50fc4246fdae67b8a33799ea580b68593 (diff)
downloadmpd-f54bcc1f16f815fb507ac8a8ffd7913f686969d2.tar.gz
mpd-f54bcc1f16f815fb507ac8a8ffd7913f686969d2.tar.xz
mpd-f54bcc1f16f815fb507ac8a8ffd7913f686969d2.zip
FilterPlugin: pass config_param reference
Diffstat (limited to 'test')
-rw-r--r--test/run_filter.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/run_filter.cxx b/test/run_filter.cxx
index db4a2ee89..761bc14e8 100644
--- a/test/run_filter.cxx
+++ b/test/run_filter.cxx
@@ -58,8 +58,7 @@ find_named_config_block(ConfigOption option, const char *name)
const struct config_param *param = NULL;
while ((param = config_get_next_param(option, param)) != NULL) {
- const char *current_name =
- config_get_block_string(param, "name", NULL);
+ const char *current_name = param->GetBlockValue("name");
if (current_name != NULL && strcmp(current_name, name) == 0)
return param;
}
@@ -79,7 +78,7 @@ load_filter(const char *name)
return nullptr;
}
- Filter *filter = filter_configured_new(param, &error);
+ Filter *filter = filter_configured_new(*param, &error);
if (filter == NULL) {
g_printerr("Failed to load filter: %s\n", error->message);
g_error_free(error);