From 7a1d466fb279659048e80e2853a7906c90d73235 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sun, 4 Aug 2013 11:30:26 +0200 Subject: DecoderPlugin: pass config_param reference --- src/decoder/WildmidiDecoderPlugin.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/decoder/WildmidiDecoderPlugin.cxx') diff --git a/src/decoder/WildmidiDecoderPlugin.cxx b/src/decoder/WildmidiDecoderPlugin.cxx index 832cabe76..1358c20d3 100644 --- a/src/decoder/WildmidiDecoderPlugin.cxx +++ b/src/decoder/WildmidiDecoderPlugin.cxx @@ -35,13 +35,13 @@ extern "C" { static constexpr unsigned WILDMIDI_SAMPLE_RATE = 48000; static bool -wildmidi_init(const struct config_param *param) +wildmidi_init(const config_param ¶m) { const char *config_file; int ret; - config_file = config_get_block_string(param, "config_file", - "/etc/timidity/timidity.cfg"); + config_file = param.GetBlockValue("config_file", + "/etc/timidity/timidity.cfg"); if (!g_file_test(config_file, G_FILE_TEST_IS_REGULAR)) { g_debug("configuration file does not exist: %s", config_file); return false; -- cgit v1.2.3