aboutsummaryrefslogtreecommitdiffstats
path: root/src/replayGain.c
diff options
context:
space:
mode:
authorJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 18:15:54 +0000
committerJ. Alexander Treuman <jat@spatialrift.net>2007-05-26 18:15:54 +0000
commitbba444524eca700970f69261bc470fb01a138222 (patch)
tree7d5e302586ed757a6eb3f71a27f84bba60383fd4 /src/replayGain.c
parentdba45a59928301da0faa4ec679eb1a3a81d5fba5 (diff)
downloadmpd-bba444524eca700970f69261bc470fb01a138222.tar.gz
mpd-bba444524eca700970f69261bc470fb01a138222.tar.xz
mpd-bba444524eca700970f69261bc470fb01a138222.zip
Changing all calls to ERROR() followed by exit(EXIT_FAILURE) with a single
call to FATAL(). git-svn-id: https://svn.musicpd.org/mpd/trunk@6276 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r--src/replayGain.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/replayGain.c b/src/replayGain.c
index eeda47f36..7c20919b8 100644
--- a/src/replayGain.c
+++ b/src/replayGain.c
@@ -44,9 +44,8 @@ void initReplayGainState(void)
} else if (strcmp(param->value, "album") == 0) {
replayGainState = REPLAYGAIN_ALBUM;
} else {
- ERROR("replaygain value \"%s\" at line %i is invalid\n",
+ FATAL("replaygain value \"%s\" at line %i is invalid\n",
param->value, param->line);
- exit(EXIT_FAILURE);
}
param = getConfigParam(CONF_REPLAYGAIN_PREAMP);
@@ -56,15 +55,13 @@ void initReplayGainState(void)
float f = strtod(param->value, &test);
if (*test != '\0') {
- ERROR("Replaygain preamp \"%s\" is not a number at "
+ FATAL("Replaygain preamp \"%s\" is not a number at "
"line %i\n", param->value, param->line);
- exit(EXIT_FAILURE);
}
if (f < -15 || f > 15) {
- ERROR("Replaygain preamp \"%s\" is not between -15 and"
+ FATAL("Replaygain preamp \"%s\" is not between -15 and"
"15 at line %i\n", param->value, param->line);
- exit(EXIT_FAILURE);
}
replayGainPreamp = pow(10, f / 20.0);