miniobject: weak_unref: display the pointer of the object if failing
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Fri, 8 Jul 2016 14:31:56 +0000 (16:31 +0200)
committerTim-Philipp Müller <tim@centricular.com>
Fri, 8 Jul 2016 16:52:48 +0000 (17:52 +0100)
That's generally the most useful information to help debugging the
problem.

https://bugzilla.gnome.org/show_bug.cgi?id=768579

gst/gstminiobject.c

index c45f082..17fd67a 100644 (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);
 }