To get "zbus" messages by using gst_parse_launch () function

Nicolas Dufresne nicolas at ndufresne.ca
Fri Aug 11 20:14:08 UTC 2017


Le vendredi 11 août 2017 à 18:56 +0000, Vuott a écrit :
> Hello,
> 
> In: 
> https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins
> -bad-plugins/html/gst-plugins-bad-plugins-zbar.html
> the guide says "zbar" plug-in sends bar codes as element messages to
> the "GstBus".
> 
> To read/get those messages from "GstBus", have I use
> "gst_element_get_bus()" function ?

No, always get the GstPipeline bus (gst_pipeline_get_bus()). Then add a
watch on the bus if you are using a GMainLoop, or poll the bus if not
to get the messages asynchronously. You'll have to filter the messages.

> 
> Thanks
> vuott
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170811/fb8859e3/attachment.sig>


More information about the gstreamer-devel mailing list