diff options
author | Max Kellermann <max@duempel.org> | 2009-01-17 20:23:33 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-01-17 20:23:33 +0100 |
commit | a1a97cc048a443eb71944848592b9827991600fd (patch) | |
tree | e3bfbf5bd38a851d2823b99a00f4abba9ba1db43 /src/decoder/mp3_plugin.c | |
parent | 4d472c265ed0b3f7f61ee624c01c8ef319db7c99 (diff) | |
download | mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.gz mpd-a1a97cc048a443eb71944848592b9827991600fd.tar.xz mpd-a1a97cc048a443eb71944848592b9827991600fd.zip |
conf: use config_get_bool() instead of getBoolConfigParam()
Diffstat (limited to '')
-rw-r--r-- | src/decoder/mp3_plugin.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/decoder/mp3_plugin.c b/src/decoder/mp3_plugin.c index fd0ac21a9..fda866133 100644 --- a/src/decoder/mp3_plugin.c +++ b/src/decoder/mp3_plugin.c @@ -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; } |