handle actual GObject having been set to NULL in repr

(For example, when doing weak ref tracking)
parent 0d55256c
......@@ -47,7 +47,9 @@ _wrap_gst_object_tp_repr (PyObject * self)
repr = g_strdup_printf ("<%s object (%s) at 0x%lx>",
GST_OBJECT_NAME (object) ? GST_OBJECT_NAME (object) : "unnamed",
object ? (
GST_OBJECT_NAME (object) ? GST_OBJECT_NAME (object) : "unnamed"
) : "(null)",
(long) self);
ret = PyString_FromString (repr);
g_free (repr);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment