]> git.sesse.net Git - vlc/commitdiff
MacOS Gui: fix play/pause toogle with space key in fullscreen mode
authorDavid Fuhrmann <david.fuhrmann@googlemail.com>
Thu, 24 Nov 2011 07:24:58 +0000 (08:24 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 24 Nov 2011 09:08:54 +0000 (10:08 +0100)
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@videolan.org>
modules/gui/macosx/VideoView.m

index 1a90d108e945dd079abc8741131e83d2533e1727..c17834890f5ef45a999a3145640c496f8c2b815b 100644 (file)
@@ -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