[vlc-commits] commit: Fix lock inversion (=?UTF-8?Q?R=C3=A9mi=20Denis=2DCourmont=20?=)

git at videolan.org git at videolan.org
Mon Jan 17 18:50:55 CET 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Jan 17 19:50:36 2011 +0200| [ba740b334ac598b22030520b32d72fdd0dd08190] | committer: Rémi Denis-Courmont 

Fix lock inversion

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

 src/misc/events.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/events.c b/src/misc/events.c
index 07e8611..555a7a4 100644
--- a/src/misc/events.c
+++ b/src/misc/events.c
@@ -338,8 +338,8 @@ int vlc_event_detach( vlc_event_manager_t *p_em,
     vlc_event_listeners_group_t * listeners_group;
     struct vlc_event_listener_t * listener;
 
-    vlc_mutex_lock( &p_em->object_lock );
     vlc_mutex_lock( &p_em->event_sending_lock );
+    vlc_mutex_lock( &p_em->object_lock );
     FOREACH_ARRAY( listeners_group, p_em->listeners_groups )
         if( listeners_group->event_type == event_type )
         {



More information about the vlc-commits mailing list