mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
gst/gstbuffer.override: Increment the refcount when fetching GST_BUFFER_CAPS.
Original commit message from CVS: * gst/gstbuffer.override: Increment the refcount when fetching GST_BUFFER_CAPS. Python gurus, please fix if there's a better way this should be done.
This commit is contained in:
parent
23af58d1e3
commit
ab0dbff2a0
2 changed files with 17 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-09-22 Jan Schmidt <thaytan@mad.scientist.com>
|
||||
|
||||
* gst/gstbuffer.override:
|
||||
Increment the refcount when fetching GST_BUFFER_CAPS.
|
||||
Python gurus, please fix if there's a better way this should be done.
|
||||
|
||||
2005-09-21 Andy Wingo <wingo@pobox.com>
|
||||
|
||||
* testsuite/test_pad.py (PadProbeTest.testRemovingProbe): Add
|
||||
|
|
|
@ -560,3 +560,14 @@ _wrap_gst_buffer_stamp (PyGstMiniObject *self, PyObject *args, PyObject *kwargs)
|
|||
Py_INCREF(Py_None);
|
||||
return Py_None;
|
||||
}
|
||||
%%
|
||||
override-attr GstBuffer.caps
|
||||
static PyObject *
|
||||
_wrap_gst_buffer__get_caps(PyGstMiniObject *self)
|
||||
{
|
||||
GstCaps *ret;
|
||||
|
||||
ret = gst_buffer_get_caps(GST_BUFFER(self->obj));
|
||||
gst_caps_ref (ret);
|
||||
return pyg_boxed_new (GST_TYPE_CAPS, ret, FALSE, TRUE);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue