[gst-devel] Not at all related to 0.11 [Was: The 1.0 plan]

Sebastian Dröge sebastian.droege at collabora.co.uk
Thu Nov 18 13:30:44 CET 2010


On Thu, 2010-11-18 at 10:07 -0200, Tiago Katcipis wrote:
> 
> 
> On Tue, Nov 16, 2010 at 6:28 PM, David Schleef <ds at entropywave.com>
> wrote:
>         On Tue, Nov 16, 2010 at 10:28:23AM -0200, Tiago Katcipis
>         wrote:
>         > but to make use of the async API it is needed a GMainLoop,
>         and there is the
>         > problem :-), gst plugins are not aware if there is a main
>         loop running, it
>         > is not mandatory.
>         
>         Elements that require a GMainLoop create a thread and run a
>         GMainLoop
>         there.  One example is souphttpsrc.
> 
> That approach doesn't bring the same hazards of gst_bus_poll ?

No, if you want to use a GMainLoop inside your element you also have to
create a new GMainContext for it (which is then driven by your private
main loop). There's no need to run a GLib main loop on the default
context or any other ugly things.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101118/ac791e9e/attachment.pgp>


More information about the gstreamer-devel mailing list