]> git.sesse.net Git - vlc/blobdiff - src/misc/objects.c
macosx: Add a missing PL_LOCK in the wizard.
[vlc] / src / misc / objects.c
index 7e8e7ef93818988ff91a06829a96009558b8363f..96214c14d0710889a451e8df0252bc433da03894 100644 (file)
@@ -96,8 +96,8 @@ static void held_objects_destroy (void *);
  *****************************************************************************/
 static vlc_mutex_t     structure_lock;
 
-void *vlc_custom_create( vlc_object_t *p_this, size_t i_size,
-                         int i_type, const char *psz_type )
+void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
+                           int i_type, const char *psz_type )
 {
     vlc_object_t *p_new;
     vlc_object_internals_t *p_priv;
@@ -303,8 +303,8 @@ static void vlc_object_destroy( vlc_object_t *p_this )
     if( p_priv->b_thread )
     {
         msg_Warn (p_this->p_libvlc, /* do NOT use a dead object for logging! */
-                  "object %d destroyed while thread alive (VLC might crash)",
-                  p_this->i_object_id);
+                  "%s %d destroyed while thread alive (VLC might crash)",
+                  p_this->psz_object_type, p_this->i_object_id);
         vlc_thread_join( p_this );
     }