]> git.sesse.net Git - vlc/blobdiff - modules/gui/hildon/maemo_input.c
hildon: add a slightly more useful menu to the maemo interface
[vlc] / modules / gui / hildon / maemo_input.c
index bd33b1d4fff864bfa1aaa825dad82d18c6538333..4f9fb0661f0733e838eba9dcd1aed2bbd688eae7 100644 (file)
@@ -63,11 +63,11 @@ void post_event( intf_thread_t *p_intf, int i_event )
 static gboolean process_events( gpointer data )
 {
     intf_thread_t *p_intf = (intf_thread_t *)data;
-    vlc_spin_lock( &p_intf->p_sys->event_lock );
+    int i_event;
 
-    int i_event = p_intf->p_sys->i_event;
+    vlc_spin_lock( &p_intf->p_sys->event_lock );
+    i_event = p_intf->p_sys->i_event;
     p_intf->p_sys->i_event = 0;
-
     vlc_spin_unlock( &p_intf->p_sys->event_lock );
 
     if( !i_event ) return TRUE;