View Full Version : Transition to gstreamer 1.0

December 17th, 2012, 02:35 PM
Version 0.10 works fine, but 1.0 yields this:

GStreamer-CRITICAL **: gst_element_get_bus: assertion `GST_IS_ELEMENT (element)' failedat the second line:

GstElement *refPlay = gst_element_factory_make("playbin", NULL);
GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(refPlay)); //THIS LINE
Anyone knows what's wrong and why refPlay (GstElement*) isn't a pipeline anymore in gstreamer 1.0?

December 17th, 2012, 03:03 PM
Does GST_IS_ELEMENT(refPlay) return false or GST_IS_ELEMENT(GST_PIPELINE(refPlay))?

December 17th, 2012, 03:14 PM
It turns out the first line returns NULL. I'm not sure why.

Before this I do:

guint major, minor, micro, nano;
gst_version(&major, &minor, &micro, &nano);
printf("Using gstreamer v.%d.%d.%d.%d\n", major, minor, micro, nano);

and get "Using gstreamer v.". So I'm certainly using v1.0 version and it probably works/is installed fine.

Looks like for some reason neither playbin nor playbin2 work in gstreamer 1.0

EDIT: this solves it (http://lists.freedesktop.org/archives/gstreamer-devel/2012-December/038468.html)

December 17th, 2012, 06:07 PM
Nice. Happy coding then.