Commit a17d8143 authored by Max Kellermann's avatar Max Kellermann

replay_gain: read configuration even when replay gain is disabled

It will be possible to enable replay gain at runtime even when it is disabled in the configuration file. This patch enables the preamp settings in this case.
parent 5554633a
...@@ -44,10 +44,9 @@ void replay_gain_global_init(void) ...@@ -44,10 +44,9 @@ void replay_gain_global_init(void)
{ {
const struct config_param *param = config_get_param(CONF_REPLAYGAIN); const struct config_param *param = config_get_param(CONF_REPLAYGAIN);
if (!param) if (param == NULL) {
return; replay_gain_mode = REPLAY_GAIN_OFF;
} else if (strcmp(param->value, "track") == 0) {
if (strcmp(param->value, "track") == 0) {
replay_gain_mode = REPLAY_GAIN_TRACK; replay_gain_mode = REPLAY_GAIN_TRACK;
} else if (strcmp(param->value, "album") == 0) { } else if (strcmp(param->value, "album") == 0) {
replay_gain_mode = REPLAY_GAIN_ALBUM; replay_gain_mode = REPLAY_GAIN_ALBUM;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment