]> git.sesse.net Git - vlc/commitdiff
macosx: fixing hotkey usage.
authorDerk-Jan Hartman <hartman@videolan.org>
Sun, 10 Aug 2008 15:55:59 +0000 (17:55 +0200)
committerDerk-Jan Hartman <hartman@videolan.org>
Sun, 10 Aug 2008 15:55:59 +0000 (17:55 +0200)
Grah, stupid, annoying and more. Simple bugs should be forbidden :D

modules/gui/macosx/vout.m

index 3e173e1cce015f9a38568aae8e3f58b1f6d36fea..9f738b050292fab7b92940e10e004fb433e22ebf 100644 (file)
@@ -494,19 +494,16 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
         }
         else if ( p_vout )
         {
-            vlc_value_t val;
             if( key == ' ')
                 val.i_int = config_GetInt( p_vout, "key-play-pause" );
             else
-                val.i_int |= CocoaKeyToVLC( key );
+                val.i_int |= (int)CocoaKeyToVLC( key );
             var_Set( p_vout->p_libvlc, "key-pressed", val );
         }
         else NSLog( @"Could not send keyevent to VLC core" );
     }
     else
-    {
         [super keyDown: o_event];
-    }
 }
 
 - (void)mouseDown:(NSEvent *)o_event