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;