[gstreamer-bugs] [Bug 583750] New: Crash when playing with decodebin2 in pipeline.
GStreamer (bugzilla.gnome.org)
bugzilla-daemon at bugzilla.gnome.org
Sun May 24 15:19:23 PDT 2009
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=583750
GStreamer | gst-python | Ver: 0.10.x
Summary: Crash when playing with decodebin2 in pipeline.
Product: GStreamer
Version: 0.10.x
Platform: Other
OS/Version: All
Status: UNCONFIRMED
Severity: critical
Priority: Normal
Component: gst-python
AssignedTo: gstreamer-bugs at lists.sourceforge.net
ReportedBy: a2k0001 at gmail.com
QAContact: gstreamer-bugs at lists.sourceforge.net
GNOME version: Unspecified
GNOME milestone: Unspecified
Steps to reproduce:
Try to run the code below. On third track you will get warning or crash.
import gobject
gobject.threads_init()
import gst
class Player():
def __init__(self):
self.player = gst.Pipeline("player")
source = gst.element_factory_make("filesrc", "filesrc")
decoder = gst.element_factory_make("decodebin2", "decodebin2")
conv = gst.element_factory_make("audioconvert", "converter")
volume = gst.element_factory_make("volume", "volume")
sink = gst.element_factory_make("autoaudiosink", "alsa-output")
self.player.add(source, decoder, conv, volume, sink)
gst.element_link_many(source, decoder)
gst.element_link_many(conv, volume, sink)
def new_decode_pad(dbin, pad, islast):
pad.link(conv.get_pad("sink"))
decoder.connect("new-decoded-pad", new_decode_pad)
def play_track(self, track):
self.player.set_state(gst.STATE_NULL)
self.player.get_by_name("filesrc").set_property("location", track)
self.player.set_state(gst.STATE_PLAYING)
from time import sleep
p = Player()
p.play_track('track1.mp3')
sleep(3)
p.play_track('track2.mp3')
sleep(3)
p.play_track('track3.mp3')
sleep(10)
Stack trace:
Warning: invalid uninstantiatable type `(null)' in cast to `GObject'
self.player.set_state(gst.STATE_PLAYING)
Warning: g_object_notify: assertion `G_IS_OBJECT (object)' failed
self.player.set_state(gst.STATE_PLAYING)
Other information:
This happens only if using decodebin2.
--
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=583750.
More information about the Gstreamer-bugs
mailing list