From 4a2122eaf4bffdf7ebb012fe6348602d8e54ced0 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 5 Sep 2007 23:59:33 +0000 Subject: conf: improved boolean config parameter handling from -ke the force flag will issue FATAL() if an invalid value is specified git-svn-id: https://svn.musicpd.org/mpd/trunk@6857 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/inputPlugins/mp3_plugin.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/inputPlugins') diff --git a/src/inputPlugins/mp3_plugin.c b/src/inputPlugins/mp3_plugin.c index 43783070d..dc9e04e5f 100644 --- a/src/inputPlugins/mp3_plugin.c +++ b/src/inputPlugins/mp3_plugin.c @@ -120,11 +120,10 @@ static signed long audio_linear_dither(unsigned int bits, mad_fixed_t sample, static int mp3_plugin_init(void) { - gaplessPlaybackEnabled = getBoolConfigParam(CONF_GAPLESS_MP3_PLAYBACK); - if (gaplessPlaybackEnabled == -1) + gaplessPlaybackEnabled = getBoolConfigParam(CONF_GAPLESS_MP3_PLAYBACK, + 1); + if (gaplessPlaybackEnabled == CONF_BOOL_UNSET) gaplessPlaybackEnabled = DEFAULT_GAPLESS_MP3_PLAYBACK; - else if (gaplessPlaybackEnabled < 0) - exit(EXIT_FAILURE); return 1; } -- cgit v1.2.3