vlc_object_die() opaque wrapper to set b_die, so we can use another
[vlc.git] / src / misc / objects.c
index 73ea005..49b784e 100644 (file)
@@ -435,6 +435,15 @@ void __vlc_object_destroy( vlc_object_t *p_this )
     }
 }
 
+
+void __vlc_object_die( vlc_object_t *p_this )
+{
+    vlc_mutex_lock( &p_this->object_lock );
+    p_this->b_die = VLC_TRUE;
+    vlc_mutex_unlock( &p_this->object_lock );
+}
+
+
 /**
  * find an object given its ID
  *