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

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

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

vuott
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 ?

Thanks
vuott
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

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

Nicolas Dufresne-5
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
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (201 bytes) Download Attachment