[gst-devel] GMainLoop in a separate thread
Tim-Philipp Müller
t.i.m at zen.co.uk
Wed Feb 4 10:30:28 CET 2009
On Tue, 2009-02-03 at 22:26 -0500, Oscar Östlund wrote:
Hi,
(please don't start a new thread as reply to another message.)
> I would like to know if it is possible to put the GMainLoop in a
> separate thread in order to "forget" about it ?
>
> I am writing an application that has it own loop mecanism and I would
> prefer not having to use the GMainLoop...
>
> Or should I add a new source to my gmainloop and run everything else
> from there ??
You don't have to use a GMainLoop at all. You just need to make sure you
handle messages on the pipeline bus somehow. You can do this by
regularly calling gst_bus_pop() if you like. The GSource/GMainLoop
integration stuff is just a bonus for Gtk+/GUI applications.
Cheers
-Tim
More information about the gstreamer-devel
mailing list