[gstreamer-bugs] [Bug 339308] New: MiniObject arguments for virtual methods shouldn't have their refcount incremented
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Fri Apr 21 07:48:13 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=339308
GStreamer | gst-python | Ver: HEAD CVS
Summary: MiniObject arguments for virtual methods shouldn't have
their refcount incremented
Product: GStreamer
Version: HEAD CVS
Platform: Other
OS/Version: Linux
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-python
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: bilboed at bilboed.com
QAContact: johan at gnome.org
GNOME version: Unspecified
GNOME milestone: Unspecified
When a GstMiniObject is an argument for a virtual method implemented in python,
its refcount shouldn't be incremented when passing it along to the python
method.
The solution should be to:
1/ wrap it in a pygstminiobject (with pygstminiobject_new())
2/ unref it once (gst_mini_object_unref())
3/ call the python method
4/ ref the miniobject (gst_mini_object_ref())
5/ decrement the refcount on the pygstminiobject (Py_DECREF())
--
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