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.
This commit is contained in:
Max Kellermann 2013-12-24 11:51:37 +01:00
parent 6b3b8c6f2e
commit c05691b546
2 changed files with 3 additions and 0 deletions

1
NEWS
View File

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

View File

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