Gstreamer and GLib Mainloop

Sebastian Dröge sebastian at centricular.com
Fri Mar 17 10:05:27 UTC 2017


On Fri, 2017-03-17 at 07:47 +0100, Roland Peffer wrote:
> 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”.

Or integrate otherwise into any kind of event loop you'd like, for
which various APIs are available.

> 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).

It was never required, the examples just use it for simplicity.

> Is the mainloop only needed for the bus watch API?

Yes

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170317/502a96a0/attachment.sig>


More information about the gstreamer-devel mailing list