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

Tiago Katcipis katcipis at inf.ufsc.br
Thu Nov 18 13:07:17 CET 2010


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 ?

http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html#gst-bus-poll

"You should never use this function, since it is pure evil. This is
especially true for GUI applications based on Gtk+ or Qt, but also for any
other non-trivial application that uses the GLib main loop. As this function
runs a GLib main loop, any callback attached to the default GLib main
context may be invoked. This could be timeouts, GUI events, I/O events etc.;
even if gst_bus_poll()<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstBus.html#gst-bus-poll>is
called with a 0 timeout. Any of these callbacks may do things you do
not
expect, e.g. destroy the main application window or some other resource;
change other application state; display a dialog and run another main loop
until the user clicks it away. In short, using this function may add a lot
of complexity to your code through unexpected re-entrancy and unexpected
changes to your application's state."


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



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


More information about the gstreamer-devel mailing list