diff options
author | Eric Wong <normalperson@yhbt.net> | 2007-09-05 23:59:33 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2007-09-05 23:59:33 +0000 |
commit | 4a2122eaf4bffdf7ebb012fe6348602d8e54ced0 (patch) | |
tree | ae1e3307e08d3e36e5e7a7e50960f2eae8234670 /src/normalize.c | |
parent | ac58dce7df97a97b8e2d71a76b5fa8805653959a (diff) | |
download | mpd-4a2122eaf4bffdf7ebb012fe6348602d8e54ced0.tar.gz mpd-4a2122eaf4bffdf7ebb012fe6348602d8e54ced0.tar.xz mpd-4a2122eaf4bffdf7ebb012fe6348602d8e54ced0.zip |
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
Diffstat (limited to '')
-rw-r--r-- | src/normalize.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/normalize.c b/src/normalize.c index 504656c1d..ee21fc919 100644 --- a/src/normalize.c +++ b/src/normalize.c @@ -28,11 +28,9 @@ int normalizationEnabled; void initNormalization(void) { - normalizationEnabled = getBoolConfigParam(CONF_VOLUME_NORMALIZATION); - if (normalizationEnabled == -1) + normalizationEnabled = getBoolConfigParam(CONF_VOLUME_NORMALIZATION, 1); + if (normalizationEnabled == CONF_BOOL_UNSET) normalizationEnabled = DEFAULT_VOLUME_NORMALIZATION; - else if (normalizationEnabled < 0) - exit(EXIT_FAILURE); if (normalizationEnabled) CompressCfg(0, ANTICLIP, TARGET, GAINMAX, GAINSMOOTH, BUCKETS); |