Commit 3d9d5739 authored by Christophe Massiot's avatar Christophe Massiot

* src/misc/objects.c: More verbosity to debug unreleased objects.

parent bcff7cfc
...@@ -342,17 +342,23 @@ void __vlc_object_destroy( vlc_object_t *p_this ) ...@@ -342,17 +342,23 @@ void __vlc_object_destroy( vlc_object_t *p_this )
/* Don't warn immediately ... 100ms seems OK */ /* Don't warn immediately ... 100ms seems OK */
if( i_delay == 2 ) if( i_delay == 2 )
{ {
msg_Warn( p_this, "refcount is %i, delaying before deletion", msg_Warn( p_this,
p_this->i_refcount ); "refcount is %i, delaying before deletion (id=%d,type=%d)",
p_this->i_refcount, p_this->i_object_id,
p_this->i_object_type );
} }
else if( i_delay == 12 ) else if( i_delay == 10 )
{ {
msg_Err( p_this, "refcount is %i, I have a bad feeling about this", msg_Err( p_this,
p_this->i_refcount ); "refcount is %i, delaying again (id=%d,type=%d)",
p_this->i_refcount, p_this->i_object_id,
p_this->i_object_type );
} }
else if( i_delay == 42 ) else if( i_delay == 20 )
{ {
msg_Err( p_this, "we waited too long, cancelling destruction" ); msg_Err( p_this,
"we waited too long, cancelling destruction (id=%d,type=%d)",
p_this->i_object_id, p_this->i_object_type );
return; return;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment