replay_gain: added setting "replaygain off"

There was no setting for disabling replay gain.  It was off when the
"replaygain" setting was not there.
This commit is contained in:
Max Kellermann
2009-10-17 21:38:45 +02:00
parent a17d814381
commit 8d217567c6
3 changed files with 4 additions and 4 deletions

View File

@@ -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;