[vlc-commits] MacOS Gui: fix play/pause toogle with space key in fullscreen mode
David Fuhrmann
git at videolan.org
Thu Nov 24 10:08:55 CET 2011
vlc | branch: master | David Fuhrmann <david.fuhrmann at googlemail.com> | Thu Nov 24 08:24:58 2011 +0100| [a6c09741abbf39900841c6939842b1b7ef26a9d6] | committer: Felix Paul Kühne
MacOS Gui: fix play/pause toogle with space key in fullscreen mode
This fixes play/pause toogle with space key, when vlc is or was in (non-lion) fullscreen mode.
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a6c09741abbf39900841c6939842b1b7ef26a9d6
---
modules/gui/macosx/VideoView.m | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/modules/gui/macosx/VideoView.m b/modules/gui/macosx/VideoView.m
index 1a90d10..c178348 100644
--- a/modules/gui/macosx/VideoView.m
+++ b/modules/gui/macosx/VideoView.m
@@ -204,11 +204,15 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
}
else if ( p_vout )
{
- if( key == ' ')
- val.i_int = config_GetInt( p_vout, "key-play-pause" );
+ if( key == ' ' )
+ {
+ [[VLCCoreInteraction sharedInstance] play];
+ }
else
+ {
val.i_int |= (int)CocoaKeyToVLC( key );
- var_Set( p_vout->p_libvlc, "key-pressed", val );
+ var_Set( p_vout->p_libvlc, "key-pressed", val );
+ }
vlc_object_release( p_vout );
}
else
More information about the vlc-commits
mailing list