config/Option: convert to strictly-typed enum
This commit is contained in:
@@ -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 = ∅
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user