miniobject: weak_unref: display the pointer of the object if failing

That's generally the most useful information to help debugging the
problem.

https://bugzilla.gnome.org/show_bug.cgi?id=768579
This commit is contained in:
Guillaume Desmottes 2016-07-08 16:31:56 +02:00 committed by Tim-Philipp Müller
parent 757a8b04c0
commit e73650e5f9

View file

@ -633,7 +633,8 @@ gst_mini_object_weak_unref (GstMiniObject * object,
if ((i = find_notify (object, weak_ref_quark, TRUE, notify, data)) != -1) {
remove_notify (object, i);
} else {
g_warning ("%s: couldn't find weak ref %p(%p)", G_STRFUNC, notify, data);
g_warning ("%s: couldn't find weak ref %p (object:%p data:%p)", G_STRFUNC,
notify, object, data);
}
G_UNLOCK (qdata_mutex);
}