[vlc-devel] [PATCH 1/3] macosx: reenable audio items on osd
David Fuhrmann
david.fuhrmann at googlemail.com
Fri Jan 20 12:58:25 CET 2012
This reverts commit 0f3ee76af70c5e27ca9fe67238a59a3cc594cf93.
As suggested in trac. fixes #5837
---
modules/gui/macosx/CoreInteraction.m | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/modules/gui/macosx/CoreInteraction.m b/modules/gui/macosx/CoreInteraction.m
index 2044c42..7722752 100644
--- a/modules/gui/macosx/CoreInteraction.m
+++ b/modules/gui/macosx/CoreInteraction.m
@@ -409,20 +409,17 @@ static VLCCoreInteraction *_o_sharedInstance = nil;
- (void)volumeUp
{
- playlist_t * p_playlist = pl_Get( VLCIntf );
- aout_VolumeUp( p_playlist, 1, NULL );
+ var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_UP );
}
- (void)volumeDown
{
- playlist_t * p_playlist = pl_Get( VLCIntf );
- aout_VolumeDown( p_playlist, 1, NULL );
+ var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
}
- (void)mute
{
- playlist_t * p_playlist = pl_Get( VLCIntf );
- aout_ToggleMute( p_playlist, NULL );
+ var_SetInteger( VLCIntf->p_libvlc, "key-action", ACTIONID_VOL_MUTE );
}
- (BOOL)isMuted
--
1.7.5.4
More information about the vlc-devel
mailing list