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

Tiago Katcipis katcipis at inf.ufsc.br
Thu Nov 18 14:51:55 CET 2010

2010/11/18 Sebastian Dröge <sebastian.droege at collabora.co.uk>

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

hmm, that's interesting, why gst_bus_poll use the default context them?

i never used GMainLoop with different contexts, not pretty sure of how it
works. If the main loop on the default context is running (the application
is using it), and i create my main loop with a different context inside the
plugin, to which main loop will go the async result of the GIO call ? (I'm
going to read more about multiple main loops with different contexts)

if GIO would work with this approach it seems to be an interesting solution
to start using the GIO async API instead of the sync API, and it would be
possible to mount the file for the user, making the use of giosrc/sink
pretty easier.

> ------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20101118/e6b3828a/attachment.htm>

More information about the gstreamer-devel mailing list