aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_output.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-04 12:25:08 +0200
committerMax Kellermann <max@duempel.org>2013-08-04 14:07:49 +0200
commit81c3224076da6ad727debc6bab8a5422f7322451 (patch)
tree1da1912caa6c7ff863f7affeafae22e9e6004e8f /test/run_output.cxx
parent7a1d466fb279659048e80e2853a7906c90d73235 (diff)
downloadmpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.gz
mpd-81c3224076da6ad727debc6bab8a5422f7322451.tar.xz
mpd-81c3224076da6ad727debc6bab8a5422f7322451.zip
OutputPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r--test/run_output.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/run_output.cxx b/test/run_output.cxx
index 34879c657..fbdeebcb6 100644
--- a/test/run_output.cxx
+++ b/test/run_output.cxx
@@ -76,8 +76,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;
}
@@ -104,7 +103,7 @@ load_audio_output(const char *name)
static struct player_control dummy_player_control(32, 4);
struct audio_output *ao =
- audio_output_new(param, &dummy_player_control, &error);
+ audio_output_new(*param, &dummy_player_control, &error);
if (ao == NULL) {
g_printerr("%s\n", error->message);
g_error_free(error);