[vlc-devel] commit: vlc_mutex_init_recursive: remove useless parameter ( Rémi Denis-Courmont )

git version control git at videolan.org
Sun May 4 13:13:37 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rem at videolan.org> | Sun May  4 14:12:33 2008 +0300| [e038c5268f243761f3d3b63def32fda573ce1e4d]

vlc_mutex_init_recursive: remove useless parameter

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

 include/vlc_threads_funcs.h |    2 +-
 src/control/event.c         |    2 +-
 src/misc/events.c           |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/vlc_threads_funcs.h b/include/vlc_threads_funcs.h
index 7cad20c..dc632e9 100644
--- a/include/vlc_threads_funcs.h
+++ b/include/vlc_threads_funcs.h
@@ -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 )
 
 /*****************************************************************************
diff --git a/src/control/event.c b/src/control/event.c
index 57cfc66..b784010 100644
--- a/src/control/event.c
+++ b/src/control/event.c
@@ -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;
 }
 
diff --git a/src/misc/events.c b/src/misc/events.c
index 251f037..a8b54ec 100644
--- a/src/misc/events.c
+++ b/src/misc/events.c
@@ -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;
 }




More information about the vlc-devel mailing list