[gst-devel] GMainLoop in a separate thread

Oscar Östlund oscar.ostlund at gmail.com
Thu Feb 5 04:55:05 CET 2009


Great

Thank you very much for your quick response !

Oscar

Le 4 févr. 09 à 04:30, Tim-Philipp Müller a écrit :

> 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
>
>
>
> ------------------------------------------------------------------------------
> Create and Deploy Rich Internet Apps outside the browser with  
> Adobe(R)AIR(TM)
> software. With Adobe AIR, Ajax developers can use existing skills  
> and code to
> build responsive, highly engaging applications that combine the  
> power of local
> resources and data with the reach of the web. Download the Adobe AIR  
> SDK and
> Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list