From e73650e5f99dac178ee401438008c43b6a32e247 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Fri, 8 Jul 2016 16:31:56 +0200 Subject: [PATCH] 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 --- gst/gstminiobject.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst/gstminiobject.c b/gst/gstminiobject.c index c45f082..17fd67a 100644 --- a/gst/gstminiobject.c +++ b/gst/gstminiobject.c @@ -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); } -- 2.7.4