[gstreamer-bugs] [Bug 339767] An example of subclassing GstBaseTransform
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Apr 28 10:38:09 PDT 2006
Do not reply to this via email (we are currently unable to handle email
responses and they get discarded). You can add comments to this bug at
http://bugzilla.gnome.org/show_bug.cgi?id=339767
GStreamer | gst-python | Ver: HEAD CVS
Edward Hervey changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bilboed at bilboed.com
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
------- Comment #2 from Edward Hervey 2006-04-28 17:38 UTC -------
After looking deeper, and with the following commits, gst-python is now doing
the proper refcounting. The problem is in fact in the C GstBaseTransform class.
You just showed a case where the refcounting is too big for ::transform_ip()
when you don't implement the prepare_output_buffer() virtual method.
2006-04-28 Edward Hervey <edward at fluendo.com>
* gst/arg-types.py:
Caps used as arguments of virtual methods should keep their initial
refcount when calling the python methods.
This is similar to the patch done for GstMiniObjects.
* gst/gstbase.override:
Adjust the gst.BaseTransform.get_unit_size() virtual method for above
fix.
2006-04-28 Edward Hervey <edward at fluendo.com>
* gst/arg-types.py:
GstMiniObject used as virtual methods parameters should be unreffed
before calling the method and the ref-ed.
Added Params and Returns for const-gchar*, GType and gulong so the
code generator can generate more virtual methods handlers/proxys.
* gst/gst-types.defs:
* gst/gst.defs:
* gst/interfaces.defs:
Added vtable and virtual method definition for interfaces so we can
properly use virtual
methods from those interfaces in python.
--
Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Gstreamer-bugs
mailing list