[vlc-devel] commit: macosx: fixing hotkey usage. (Derk-Jan Hartman )

git version control git at videolan.org
Sun Aug 10 17:56:35 CEST 2008


vlc | branch: master | Derk-Jan Hartman <hartman at videolan.org> | Sun Aug 10 17:55:59 2008 +0200| [135139eaaf6bcb9008f8a6f689bc6ade226a12c7] | committer: Derk-Jan Hartman 

macosx: fixing hotkey usage.

Grah, stupid, annoying and more. Simple bugs should be forbidden :D

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=135139eaaf6bcb9008f8a6f689bc6ade226a12c7
---

 modules/gui/macosx/vout.m |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/modules/gui/macosx/vout.m b/modules/gui/macosx/vout.m
index 3e173e1..9f738b0 100644
--- a/modules/gui/macosx/vout.m
+++ b/modules/gui/macosx/vout.m
@@ -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




More information about the vlc-devel mailing list