Gstreamer and GLib Mainloop
Roland Peffer
gdevel at clixxun.com
Fri Mar 17 06:47:28 UTC 2017
I can confirm that GLib mainloop is only required for the gst_bus_add_watch().
Instead of using gst_bus_add_watch you have to poll messages from the the bus “on your own”.
Regards,
Roland
On 17 Mar 2017, at 07:35, Andrew Grace <apenngrace at gmail.com> wrote:
Was there a point when it was required? The GLib mainloop seems to be used in every code sample I've ever seen involving a playing pipeline (in the gstreamer app developer manual for example and elsewhere). Is the mainloop only needed for the bus watch API?
> On Mar 17, 2017, at 2:08 AM, Sebastian Dröge <sebastian at centricular.com> wrote:
>
>> On Thu, 2017-03-16 at 17:59 -0400, Andrew Grace wrote:
>> How does Gstreamer connect with GLib's MainLoop? At the application
>> level, there is no explicit connection between them.
>
> GStreamer does not require the usage of a GLib main loop, or any main
> loop at all. However GstBus has optional integration into a GMainLoop
> with the "watch" API, e.g. gst_bus_add_watch().
>
> --
> Sebastian Dröge, Centricular Ltd · http://www.centricular.com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
More information about the gstreamer-devel
mailing list