[gstreamer-bugs] [Bug 449105] New: gst.element_register() causes core dump
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Tue Jun 19 05:47:19 PDT 2007
If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
http://bugzilla.gnome.org/show_bug.cgi?id=449105
GStreamer | gst-python | Ver: 0.10.6
Summary: gst.element_register() causes core dump
Product: GStreamer
Version: 0.10.6
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: gst-python
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: spam at coreyo.net
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: 2.17/2.18
GNOME milestone: Unspecified
Steps to reproduce:
1. include the code below in any python file
2. removing the __gstdetails__ variable stops the coredump, but the element
will not properly register
3. commenting the last line of this code also stops the core dump
Stack trace:
import pygst
pygst.require('0.10')
import gst
import gobject
class Identity(gst.Element):
__gstdetails__ = ('Identity Plugin',
"identity.py",
"Simple Identity Filter Example",
"Corey O.")
_srcpadtemplate = gst.PadTemplate ("srcpadtemplate",
gst.PAD_SRC,
gst.PAD_ALWAYS,
gst.caps_new_any())
_sinkpadtemplate = gst.PadTemplate ("sinkpadtemplate",
gst.PAD_SINK,
gst.PAD_ALWAYS,
gst.caps_new_any())
def __init__(self, name):
gst.Element.__init__(self)
self.set_name(name)
self.srcpad = gst.Pad(self._srcpadtemplate, "src")
self.sinkpad = gst.Pad(self._sinkpadtemplate, "sink")
self.add_pad(self.srcpad)
self.add_pad(self.sinkpad)
self.sinkpad.set_chain_function(self.chainfunc)
self.sinkpad.set_event_function(self.eventfunc)
def chainfunc(self, pad, buffer):
return self.srcpad.push(buffer)
def eventfunc(self, pad, event):
return self.srcpad.push_event(event)
gobject.type_register(Identity)
gst.element_register(Identity, 'identity')
Other information:
--
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.
You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=449105.
More information about the Gstreamer-bugs
mailing list