conf: use config_get_bool() instead of getBoolConfigParam()

This commit is contained in:
Max Kellermann
2009-01-17 20:23:33 +01:00
parent 4d472c265e
commit a1a97cc048
6 changed files with 16 additions and 33 deletions

View File

@@ -93,10 +93,8 @@ mad_fixed_to_24_buffer(int32_t *dest, const struct mad_synth *synth,
static bool mp3_plugin_init(void)
{
int ret = getBoolConfigParam(CONF_GAPLESS_MP3_PLAYBACK, true);
gapless_playback = ret != CONF_BOOL_UNSET
? !!ret
: DEFAULT_GAPLESS_MP3_PLAYBACK;
gapless_playback = config_get_bool(CONF_GAPLESS_MP3_PLAYBACK,
DEFAULT_GAPLESS_MP3_PLAYBACK);
return true;
}