Commit e038c526 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

vlc_mutex_init_recursive: remove useless parameter

parent 6da90a17
......@@ -59,7 +59,7 @@ VLC_EXPORT( void, __vlc_thread_join, ( vlc_object_t *, const char *, int ) );
/*****************************************************************************
* vlc_mutex_init: initialize a recursive mutex (Don't use it)
*****************************************************************************/
#define vlc_mutex_init_recursive( P_THIS, P_MUTEX ) \
#define vlc_mutex_init_recursive( P_MUTEX ) \
__vlc_mutex_init_recursive( P_MUTEX )
/*****************************************************************************
......
......@@ -101,7 +101,7 @@ libvlc_event_manager_new( void * p_obj, libvlc_instance_t * p_libvlc_inst,
libvlc_retain( p_libvlc_inst );
vlc_array_init( &p_em->listeners_groups );
vlc_mutex_init( &p_em->object_lock );
vlc_mutex_init_recursive( p_libvlc_inst->p_libvlc_int, &p_em->event_sending_lock );
vlc_mutex_init_recursive( &p_em->event_sending_lock );
return p_em;
}
......
......@@ -123,7 +123,7 @@ int vlc_event_manager_init( vlc_event_manager_t * p_em, void * p_obj,
* This ensures that after libvlc_event_detach, the callback
* will never gets triggered.
* */
vlc_mutex_init_recursive( p_parent_obj, &p_em->event_sending_lock );
vlc_mutex_init_recursive( &p_em->event_sending_lock );
ARRAY_INIT( p_em->listeners_groups );
return VLC_SUCCESS;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment