misc/events.c: Here we really would need a recursive lock to be safe.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 25 Aug 2007 21:56:14 +0000 (21:56 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 25 Aug 2007 21:56:14 +0000 (21:56 +0000)
src/misc/events.c

index a477425..c3dc184 100644 (file)
@@ -161,9 +161,7 @@ void vlc_event_send( vlc_event_manager_t * p_em,
                     ppsz_event_type_to_name[p_event->type],
                     listener->p_user_data );
 #endif
-                /* This is safe to do that because we are sure 
-                 * that there will be no object owned references
-                 * used after the lock. */
+                /* XXX: Use recursive lock. */
                 vlc_mutex_unlock( &p_em->object_lock );
                 func( p_event, user_data );
                 vlc_mutex_lock( &p_em->object_lock );