[vlc-commits] Remove write-only aout_output_t.i_volume

Rémi Denis-Courmont git at videolan.org
Thu Apr 7 22:41:33 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr  7 23:41:11 2011 +0300| [71da61e05b973c33fb3d2f9fd37c85b35b55138c] | committer: Rémi Denis-Courmont

Remove write-only aout_output_t.i_volume

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=71da61e05b973c33fb3d2f9fd37c85b35b55138c
---

 include/vlc_aout.h      |    4 ----
 src/audio_output/intf.c |    1 -
 2 files changed, 0 insertions(+), 5 deletions(-)

diff --git a/include/vlc_aout.h b/include/vlc_aout.h
index 3bb3265..0f69e5f 100644
--- a/include/vlc_aout.h
+++ b/include/vlc_aout.h
@@ -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;
diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c
index a4a77a9..fe235ef 100644
--- a/src/audio_output/intf.c
+++ b/src/audio_output/intf.c
@@ -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;
 }
 



More information about the vlc-commits mailing list