diff options
author | Max Kellermann <max@duempel.org> | 2013-08-04 11:30:26 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-08-04 13:30:47 +0200 |
commit | 7a1d466fb279659048e80e2853a7906c90d73235 (patch) | |
tree | f0c73e11b86b584a1a3f230507eabcf6f02986ea /src/decoder/MikmodDecoderPlugin.cxx | |
parent | 83f4c48c8aaa46bbede4447c95939af310ea28ad (diff) | |
download | mpd-7a1d466fb279659048e80e2853a7906c90d73235.tar.gz mpd-7a1d466fb279659048e80e2853a7906c90d73235.tar.xz mpd-7a1d466fb279659048e80e2853a7906c90d73235.zip |
DecoderPlugin: pass config_param reference
Diffstat (limited to '')
-rw-r--r-- | src/decoder/MikmodDecoderPlugin.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/decoder/MikmodDecoderPlugin.cxx b/src/decoder/MikmodDecoderPlugin.cxx index 3aa8a68ed..b7d113265 100644 --- a/src/decoder/MikmodDecoderPlugin.cxx +++ b/src/decoder/MikmodDecoderPlugin.cxx @@ -106,15 +106,14 @@ static MDRIVER drv_mpd = { static unsigned mikmod_sample_rate; static bool -mikmod_decoder_init(const struct config_param *param) +mikmod_decoder_init(const config_param ¶m) { static char params[] = ""; - mikmod_sample_rate = config_get_block_unsigned(param, "sample_rate", - 44100); + mikmod_sample_rate = param.GetBlockValue("sample_rate", 44100u); if (!audio_valid_sample_rate(mikmod_sample_rate)) MPD_ERROR("Invalid sample rate in line %d: %u", - param->line, mikmod_sample_rate); + param.line, mikmod_sample_rate); md_device = 0; md_reverb = 0; |