GStreamer and Qt

Sebastian Dröge sebastian at centricular.com
Tue Oct 23 07:00:26 UTC 2018


On Mon, 2018-10-22 at 08:58 -0700, Daniel Sperka wrote:
> 
> The trickiest part of making it work is getting the GMainLoop
> integrated into your application. I chose to start a separate thread
> and call g_main_loop_run from there, while also running a Qt main
> loop to drive the application. YMMV. 

Note that you don't have to use a GMainLoop but you can also integrate
the GstBus with the Qt event loop:
  https://github.com/sdroege/gst-snippets/tree/master/qt5-eventloop

Nowadays (1.14 and newer) you can also get an fd from the GstBus which
always becomes readable when there is a message to read, which
potentially allows nicer integration but I didn't check that for Qt
yet.

-- 
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/20181023/2a838645/attachment.sig>


More information about the gstreamer-devel mailing list