After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 360438 - Can't get GstBus of pipeline created with parse_bin_from_description()
Can't get GstBus of pipeline created with parse_bin_from_description()
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.10.10
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-10-07 17:15 UTC by Maciej Katafiasz
Modified: 2006-10-07 18:41 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Maciej Katafiasz 2006-10-07 17:15:48 UTC
Below is a simple PyGst testcase:

from gst import *

pipe = gst_parse_bin_from_description('playbin uri="file:///home/mathrick/Downloads/OST/Haibane Renmei - Blue Flow {single}/03. Aoi Inori.mp3"', False)

bus = pipe.get_bus()
print bus

Replace the uri with something appropriate, and run, it'll print None. Yet the pipeline can be played just fine. The same thing works when playbin is created manually with factory_make().
Comment 1 Tim-Philipp Müller 2006-10-07 18:41:37 UTC
I don't think this is a bug.

gst_parse_bin_from_description() creates a _bin_, not a pipeline. This bin is meant to be put into another bin or a top-level pipeline. Until then, gst_element_get_bus() on it will return NULL.

Use gst_parse_launch() to get a top-level pipeline with bus (or better, use gst_element_factory_make() to create a playbin element in this case).