diff options
author | Max Kellermann <max@duempel.org> | 2015-01-21 22:36:13 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2015-01-21 23:30:00 +0100 |
commit | 1c3f5517fabc264d7b37935bd37197cdd68250ba (patch) | |
tree | 509f68fe930e79bfa4c70a1cf2146a347f8acdef /src/decoder | |
parent | 10972da06030d57429dc2c86c21e37fd0aca88dc (diff) | |
download | mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.tar.gz mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.tar.xz mpd-1c3f5517fabc264d7b37935bd37197cdd68250ba.zip |
config/Option: convert to strictly-typed enum
Diffstat (limited to 'src/decoder')
-rw-r--r-- | src/decoder/DecoderList.cxx | 3 | ||||
-rw-r--r-- | src/decoder/plugins/MadDecoderPlugin.cxx | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder/DecoderList.cxx b/src/decoder/DecoderList.cxx index c5b8ff5fb..56cc83eba 100644 --- a/src/decoder/DecoderList.cxx +++ b/src/decoder/DecoderList.cxx @@ -132,7 +132,8 @@ void decoder_plugin_init_all(void) for (unsigned i = 0; decoder_plugins[i] != nullptr; ++i) { const DecoderPlugin &plugin = *decoder_plugins[i]; const struct config_param *param = - config_find_block(CONF_DECODER, "plugin", plugin.name); + config_find_block(ConfigOption::DECODER, "plugin", + plugin.name); if (param == nullptr) param = ∅ diff --git a/src/decoder/plugins/MadDecoderPlugin.cxx b/src/decoder/plugins/MadDecoderPlugin.cxx index 07e9bd02b..6e6feabc1 100644 --- a/src/decoder/plugins/MadDecoderPlugin.cxx +++ b/src/decoder/plugins/MadDecoderPlugin.cxx @@ -109,7 +109,7 @@ mad_fixed_to_24_buffer(int32_t *dest, const struct mad_synth *synth, static bool mp3_plugin_init(gcc_unused const config_param ¶m) { - gapless_playback = config_get_bool(CONF_GAPLESS_MP3_PLAYBACK, + gapless_playback = config_get_bool(ConfigOption::GAPLESS_MP3_PLAYBACK, DEFAULT_GAPLESS_MP3_PLAYBACK); return true; } |