]> git.sesse.net Git - vlc/commitdiff
Be sure to restart the mixer on replaygain mode change.
authorLaurent Aimar <fenrir@videolan.org>
Sun, 17 Jun 2007 14:06:26 +0000 (14:06 +0000)
committerLaurent Aimar <fenrir@videolan.org>
Sun, 17 Jun 2007 14:06:26 +0000 (14:06 +0000)
src/audio_output/input.c

index 5a3689dd594e0446f4ec1472f73eb385d4cfa9fe..550422fc0dbd622b3d58a5616be7e798a3e3edf7 100644 (file)
@@ -879,6 +879,9 @@ static int ReplayGainCallback( vlc_object_t *p_this, char const *psz_cmd,
     vlc_mutex_lock( &p_aout->mixer_lock );
     for( i = 0; i < p_aout->i_nb_inputs; i++ )
         ReplayGainSelect( p_aout, p_aout->pp_inputs[i] );
+
+    /* Restart the mixer (a trivial mixer may be in use) */
+    aout_MixerMultiplierSet( p_aout, p_aout->mixer.f_multiplier );
     vlc_mutex_unlock( &p_aout->mixer_lock );
 
     return VLC_SUCCESS;