GNOME Bugzilla – Bug 360438
Can't get GstBus of pipeline created with parse_bin_from_description()
Last modified: 2006-10-07 18:41:37 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().
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).