diff options
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; |