aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-24 11:51:37 +0100
committerMax Kellermann <max@duempel.org>2013-12-24 11:53:21 +0100
commitc05691b546544e22b5e39847cf8618c9496d3cc1 (patch)
tree4aaece68e9ffb8f9b7adcfed97cdc42898db9265
parent6b3b8c6f2e436c110d9cf895130c9bce54aa307c (diff)
downloadmpd-c05691b546544e22b5e39847cf8618c9496d3cc1.tar.gz
mpd-c05691b546544e22b5e39847cf8618c9496d3cc1.tar.xz
mpd-c05691b546544e22b5e39847cf8618c9496d3cc1.zip
OutputControl: update both ReplayGainFilters
The "mode" of the second ReplayGainFilter was never set, and thus replay gain was never applied to the new song during cross-fade.
Diffstat (limited to '')
-rw-r--r--NEWS1
-rw-r--r--src/OutputControl.cxx2
2 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 347ad8f5a..a90fdc93c 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,7 @@ ver 0.18.6 (not yet released)
- osx: fix build failure
* mixer
- alsa: fix build failure with uClibc
+* fix replay gain during cross-fade
* accept files without metadata
ver 0.18.5 (2013/11/23)
diff --git a/src/OutputControl.cxx b/src/OutputControl.cxx
index 553507a2a..27f280231 100644
--- a/src/OutputControl.cxx
+++ b/src/OutputControl.cxx
@@ -101,6 +101,8 @@ audio_output_set_replay_gain_mode(struct audio_output *ao,
{
if (ao->replay_gain_filter != nullptr)
replay_gain_filter_set_mode(ao->replay_gain_filter, mode);
+ if (ao->other_replay_gain_filter != nullptr)
+ replay_gain_filter_set_mode(ao->other_replay_gain_filter, mode);
}
void