mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/gstcaps.override: some more debugging
Original commit message from CVS: * gst/gstcaps.override: some more debugging * gst/gstevent.override: represent using the string for the type
This commit is contained in:
parent
2a96c988c0
commit
c60fcf3ee5
3 changed files with 30 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2005-10-06 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/gstcaps.override:
|
||||||
|
some more debugging
|
||||||
|
* gst/gstevent.override:
|
||||||
|
represent using the string for the type
|
||||||
|
|
||||||
2005-10-06 Edward Hervey <edward@fluendo.com>
|
2005-10-06 Edward Hervey <edward@fluendo.com>
|
||||||
|
|
||||||
* gst/gstbuffer.override: (_wrap_gst_buffer__get_caps):
|
* gst/gstbuffer.override: (_wrap_gst_buffer__get_caps):
|
||||||
|
|
|
@ -419,13 +419,14 @@ _wrap_gst_caps_tp_dealloc (PyObject *self)
|
||||||
|
|
||||||
if (boxed->free_on_dealloc && boxed->boxed) {
|
if (boxed->free_on_dealloc && boxed->boxed) {
|
||||||
pygst_caps_map_modified (self);
|
pygst_caps_map_modified (self);
|
||||||
GST_DEBUG ("unreffing caps %" GST_PTR_FORMAT "with refcount %d",
|
GST_DEBUG ("unreffing caps %" GST_PTR_FORMAT " at %p with refcount %d",
|
||||||
boxed->boxed, GST_CAPS_REFCOUNT (boxed->boxed));
|
boxed->boxed, boxed->boxed, GST_CAPS_REFCOUNT (boxed->boxed));
|
||||||
gst_caps_unref (boxed->boxed);
|
gst_caps_unref (boxed->boxed);
|
||||||
}
|
}
|
||||||
|
|
||||||
self->ob_type->tp_free((PyObject *)self);
|
self->ob_type->tp_free((PyObject *)self);
|
||||||
}
|
}
|
||||||
|
|
||||||
%%
|
%%
|
||||||
override-slot GstCaps.tp_str
|
override-slot GstCaps.tp_str
|
||||||
static PyObject *
|
static PyObject *
|
||||||
|
|
|
@ -30,3 +30,23 @@ _wrap_gst_event_get_structure(PyGstMiniObject *self)
|
||||||
/* pyg_boxed_new handles NULL checking */
|
/* pyg_boxed_new handles NULL checking */
|
||||||
return pyg_boxed_new(GST_TYPE_STRUCTURE, ret, TRUE, TRUE);
|
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 ("<GstEvent (%s) at %lx>",
|
||||||
|
gst_event_type_get_name (event->type), (long) self->obj);
|
||||||
|
|
||||||
|
retval = PyString_FromString(buf);
|
||||||
|
g_free(buf);
|
||||||
|
return retval;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue