diff --git a/ChangeLog b/ChangeLog index 92cdb1fc15..eb4d2d7249 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-10-06 Thomas Vander Stichele + + * gst/gstcaps.override: + some more debugging + * gst/gstevent.override: + represent using the string for the type + 2005-10-06 Edward Hervey * gst/gstbuffer.override: (_wrap_gst_buffer__get_caps): diff --git a/gst/gstcaps.override b/gst/gstcaps.override index bd38b0fed8..6b9b8c8ac1 100644 --- a/gst/gstcaps.override +++ b/gst/gstcaps.override @@ -419,13 +419,14 @@ _wrap_gst_caps_tp_dealloc (PyObject *self) if (boxed->free_on_dealloc && boxed->boxed) { pygst_caps_map_modified (self); - GST_DEBUG ("unreffing caps %" GST_PTR_FORMAT "with refcount %d", - boxed->boxed, GST_CAPS_REFCOUNT (boxed->boxed)); + GST_DEBUG ("unreffing caps %" GST_PTR_FORMAT " at %p with refcount %d", + boxed->boxed, boxed->boxed, GST_CAPS_REFCOUNT (boxed->boxed)); gst_caps_unref (boxed->boxed); } self->ob_type->tp_free((PyObject *)self); } + %% override-slot GstCaps.tp_str static PyObject * diff --git a/gst/gstevent.override b/gst/gstevent.override index ce3166ec0d..2dba8eb8c3 100644 --- a/gst/gstevent.override +++ b/gst/gstevent.override @@ -30,3 +30,23 @@ _wrap_gst_event_get_structure(PyGstMiniObject *self) /* pyg_boxed_new handles NULL checking */ return pyg_boxed_new(GST_TYPE_STRUCTURE, ret, TRUE, TRUE); } + +%% +override-slot GstEvent.tp_repr +static PyObject * +_wrap_gst_event_tp_repr (PyGObject *self) +{ + char *buf; + PyObject *retval; + GstEvent *event; + + event = GST_EVENT(self->obj); + + buf = g_strdup_printf ("", + gst_event_type_get_name (event->type), (long) self->obj); + + retval = PyString_FromString(buf); + g_free(buf); + return retval; +} +