Gstreamer and GLib Mainloop

Andrew Grace apenngrace at gmail.com
Fri Mar 17 06:35:09 UTC 2017


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


More information about the gstreamer-devel mailing list