[vlc-commits] MacOS gui: use aout_Volume* functions

Jean-Baptiste Kempf git at videolan.org
Fri Dec 9 18:10:25 CET 2011


vlc/vlc-1.2 | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Dec  6 13:08:24 2011 +0100| [85cb638c6c8b503c66cab63112ae5e2e619847ee] | committer: Jean-Baptiste Kempf

MacOS gui: use aout_Volume* functions

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
(cherry picked from commit 0f3ee76af70c5e27ca9fe67238a59a3cc594cf93)

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-1.2.git/?a=commit;h=85cb638c6c8b503c66cab63112ae5e2e619847ee
---

 modules/gui/macosx/CoreInteraction.m |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index b55009b..a9a9eb1 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -392,17 +392,20 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
 
 - (void)volumeUp
 {
-    var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_UP );
+    playlist_t * p_playlist = pl_Get( VLCIntf );
+    aout_VolumeUp( p_playlist, 1, NULL );
 }
 
 - (void)volumeDown
 {
-    var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
+    playlist_t * p_playlist = pl_Get( VLCIntf );
+    aout_VolumeDown( p_playlist, 1, NULL );
 }
 
 - (void)mute
 {
-    var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_MUTE );
+    playlist_t * p_playlist = pl_Get( VLCIntf );
+    aout_ToggleMute( p_playlist, NULL );
 }
 
 - (BOOL)isMuted



More information about the vlc-commits mailing list