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/AdPlugDecoderPlugin.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/decoder/AdPlugDecoderPlugin.cxx') diff --git a/src/decoder/AdPlugDecoderPlugin.cxx b/src/decoder/AdPlugDecoderPlugin.cxx index 37a95ce5d..47ab1a7f3 100644 --- a/src/decoder/AdPlugDecoderPlugin.cxx +++ b/src/decoder/AdPlugDecoderPlugin.cxx @@ -36,11 +36,11 @@ static unsigned sample_rate; static bool -adplug_init(const struct config_param *param) +adplug_init(const config_param ¶m) { GError *error = NULL; - sample_rate = config_get_block_unsigned(param, "sample_rate", 48000); + sample_rate = param.GetBlockValue("sample_rate", 48000u); if (!audio_check_sample_rate(sample_rate, &error)) { g_warning("%s\n", error->message); g_error_free(error); -- cgit v1.2.3