[vlc-commits] Rename "volume-muted" to simply "mute"

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


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr  7 23:08:37 2011 +0300| [70042746f6e57f7583b85500f6245449e714b19c] | committer: Rémi Denis-Courmont

Rename "volume-muted" to simply "mute"

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

 modules/gui/qt4/input_manager.cpp |    4 ++--
 src/audio_output/intf.c           |    6 +++---
 src/control/media_player.c        |    2 +-
 src/playlist/engine.c             |    2 +-
 4 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/modules/gui/qt4/input_manager.cpp b/modules/gui/qt4/input_manager.cpp
index c39b4bf..e297885 100644
--- a/modules/gui/qt4/input_manager.cpp
+++ b/modules/gui/qt4/input_manager.cpp
@@ -957,7 +957,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
     var_AddCallback( THEPL, "loop", LoopChanged, this );
 
     var_AddCallback( THEPL, "volume-change", VolumeChanged, this );
-    var_AddCallback( THEPL, "volume-muted", SoundMuteChanged, this );
+    var_AddCallback( THEPL, "mute", SoundMuteChanged, this );
 
     /* Warn our embedded IM about input changes */
     DCONNECT( this, inputChanged( input_thread_t * ),
@@ -988,7 +988,7 @@ MainInputManager::~MainInputManager()
     }
 
     var_DelCallback( THEPL, "volume-change", VolumeChanged, this );
-    var_DelCallback( THEPL, "volume-muted", SoundMuteChanged, this );
+    var_DelCallback( THEPL, "mute", SoundMuteChanged, this );
 
     var_DelCallback( THEPL, "activity", PLItemChanged, this );
     var_DelCallback( THEPL, "item-change", ItemChanged, im );
diff --git a/src/audio_output/intf.c b/src/audio_output/intf.c
index f89b064..f3c6e20 100644
--- a/src/audio_output/intf.c
+++ b/src/audio_output/intf.c
@@ -71,7 +71,7 @@ static void prepareVolume (vlc_object_t *obj, aout_instance_t **aoutp,
     if (volp != NULL)
         *volp = config_GetInt (obj, "volume");
     if (mutep != NULL)
-        *mutep = var_GetBool (obj, "volume-muted");
+        *mutep = var_GetBool (obj, "mute");
 }
 
 /** Commit a volume change transaction. */
@@ -83,7 +83,7 @@ static int commitVolume (vlc_object_t *obj, aout_instance_t *aout,
     config_PutInt (obj, "volume", volume);
     if (mute)
         volume = AOUT_VOLUME_MIN;
-    var_SetBool (obj, "volume-muted", mute);
+    var_SetBool (obj, "mute", mute);
 
     if (aout != NULL)
     {
@@ -213,7 +213,7 @@ bool aout_IsMuted (vlc_object_t *obj)
     cancelVolume (obj, aout);
     return mute;
 #else
-    return var_GetBool (obj, "volume-muted");
+    return var_GetBool (obj, "mute");
 #endif
 }
 
diff --git a/src/control/media_player.c b/src/control/media_player.c
index bca99ff..d7d5a7f 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -454,7 +454,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
 
      /* Audio */
     var_Create (mp, "aout", VLC_VAR_STRING | VLC_VAR_DOINHERIT);
-    var_Create (mp, "volume-muted", VLC_VAR_BOOL);
+    var_Create (mp, "mute", VLC_VAR_BOOL);
     var_Create (mp, "saved-volume", VLC_VAR_INTEGER);
     var_Create (mp, "volume-change", VLC_VAR_VOID);
     var_Create (mp, "find-input-callback", VLC_VAR_ADDRESS);
diff --git a/src/playlist/engine.c b/src/playlist/engine.c
index 6d968b8..a040bd6 100644
--- a/src/playlist/engine.c
+++ b/src/playlist/engine.c
@@ -432,7 +432,7 @@ static void VariablesInit( playlist_t *p_playlist )
     var_Create( p_playlist, "video-on-top", VLC_VAR_BOOL | VLC_VAR_DOINHERIT );
 
     /* Audio output parameters */
-    var_Create( p_playlist, "volume-muted", VLC_VAR_BOOL );
+    var_Create( p_playlist, "mute", VLC_VAR_BOOL );
     var_Create( p_playlist, "saved-volume", VLC_VAR_INTEGER );
     var_Create( p_playlist, "volume-change", VLC_VAR_VOID );
     /* FIXME: horrible hack for audio output interface code */



More information about the vlc-commits mailing list