]> git.sesse.net Git - vlc/commitdiff
Remove write-only aout_output_t.i_volume
authorRémi Denis-Courmont <remi@remlab.net>
Thu, 7 Apr 2011 20:41:11 +0000 (23:41 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Thu, 7 Apr 2011 20:41:11 +0000 (23:41 +0300)
include/vlc_aout.h
src/audio_output/intf.c

index 3bb3265c16f1e30798fae207e9384435d0826d2f..0f69e5f7c206b11b55a9e356e0e2ad35d8dd2604 100644 (file)
@@ -201,10 +201,6 @@ typedef struct aout_output_t
     int                  (* pf_volume_set )( aout_instance_t *, audio_volume_t, bool );
     int                     i_nb_samples;
 
-    /* Current volume for the output - it's just a placeholder, the plug-in
-     * may or may not use it. */
-    audio_volume_t          i_volume;
-
     /* If b_error == 1, there is no audio output pipeline. */
     bool              b_error;
 } aout_output_t;
index a4a77a9a6672bbbf06ee285528f3b57f623fec90..fe235efd4143bb2ea8b0aa1eed0a181c28d5e482 100644 (file)
@@ -244,7 +244,6 @@ static int aout_VolumeSoftSet (aout_instance_t *aout, audio_volume_t volume,
 {
     float f = mute ? 0. : (volume / (float)AOUT_VOLUME_DEFAULT);
     aout_MixerMultiplierSet (aout, f);
-    aout->output.i_volume = volume;
     return 0;
 }