diff options
author | Max Kellermann <max@duempel.org> | 2009-10-17 21:38:45 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-10-17 21:38:45 +0200 |
commit | 8d217567c6494c42bf849ea27f66e14e20788857 (patch) | |
tree | 9a713e10747993e409092c714684b03a12b0ab84 /src/replay_gain.c | |
parent | a17d814381ec5e0c17d1e48e46d692e2d9be2afc (diff) | |
download | mpd-8d217567c6494c42bf849ea27f66e14e20788857.tar.gz mpd-8d217567c6494c42bf849ea27f66e14e20788857.tar.xz mpd-8d217567c6494c42bf849ea27f66e14e20788857.zip |
replay_gain: added setting "replaygain off"
There was no setting for disabling replay gain. It was off when the
"replaygain" setting was not there.
Diffstat (limited to '')
-rw-r--r-- | src/replay_gain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/replay_gain.c b/src/replay_gain.c index 4ddb7abb8..e1c7db9fe 100644 --- a/src/replay_gain.c +++ b/src/replay_gain.c @@ -44,7 +44,7 @@ void replay_gain_global_init(void) { const struct config_param *param = config_get_param(CONF_REPLAYGAIN); - if (param == NULL) { + if (param == NULL || strcmp(param->value, "off") == 0) { replay_gain_mode = REPLAY_GAIN_OFF; } else if (strcmp(param->value, "track") == 0) { replay_gain_mode = REPLAY_GAIN_TRACK; |