diff options
Diffstat (limited to '')
-rw-r--r-- | src/ReplayGainConfig.cxx | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/ReplayGainConfig.cxx b/src/ReplayGainConfig.cxx index a921d2130..3442628b3 100644 --- a/src/ReplayGainConfig.cxx +++ b/src/ReplayGainConfig.cxx @@ -23,7 +23,7 @@ #include "ConfigData.hxx" #include "ConfigGlobal.hxx" #include "Playlist.hxx" -#include "mpd_error.h" +#include "system/FatalError.hxx" #include <glib.h> @@ -86,8 +86,8 @@ void replay_gain_global_init(void) const struct config_param *param = config_get_param(CONF_REPLAYGAIN); if (param != NULL && !replay_gain_set_mode_string(param->value)) { - MPD_ERROR("replaygain value \"%s\" at line %i is invalid\n", - param->value, param->line); + FormatFatalError("replaygain value \"%s\" at line %i is invalid\n", + param->value, param->line); } param = config_get_param(CONF_REPLAYGAIN_PREAMP); @@ -97,13 +97,13 @@ void replay_gain_global_init(void) float f = strtod(param->value, &test); if (*test != '\0') { - MPD_ERROR("Replaygain preamp \"%s\" is not a number at " - "line %i\n", param->value, param->line); + FormatFatalError("Replaygain preamp \"%s\" is not a number at " + "line %i\n", param->value, param->line); } if (f < -15 || f > 15) { - MPD_ERROR("Replaygain preamp \"%s\" is not between -15 and" - "15 at line %i\n", param->value, param->line); + FormatFatalError("Replaygain preamp \"%s\" is not between -15 and" + "15 at line %i\n", param->value, param->line); } replay_gain_preamp = pow(10, f / 20.0); @@ -116,13 +116,13 @@ void replay_gain_global_init(void) float f = strtod(param->value, &test); if (*test != '\0') { - MPD_ERROR("Replaygain missing preamp \"%s\" is not a number at " - "line %i\n", param->value, param->line); + FormatFatalError("Replaygain missing preamp \"%s\" is not a number at " + "line %i\n", param->value, param->line); } if (f < -15 || f > 15) { - MPD_ERROR("Replaygain missing preamp \"%s\" is not between -15 and" - "15 at line %i\n", param->value, param->line); + FormatFatalError("Replaygain missing preamp \"%s\" is not between -15 and" + "15 at line %i\n", param->value, param->line); } replay_gain_missing_preamp = pow(10, f / 20.0); |