<br><br><div class="gmail_quote">2010/11/18 Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian.droege@collabora.co.uk">sebastian.droege@collabora.co.uk</a>></span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
On Thu, 2010-11-18 at 10:07 -0200, Tiago Katcipis wrote:<br>
<div class="im">><br>
><br>
> On Tue, Nov 16, 2010 at 6:28 PM, David Schleef <<a href="mailto:ds@entropywave.com">ds@entropywave.com</a>><br>
> wrote:<br>
> On Tue, Nov 16, 2010 at 10:28:23AM -0200, Tiago Katcipis<br>
> wrote:<br>
> > but to make use of the async API it is needed a GMainLoop,<br>
> and there is the<br>
> > problem :-), gst plugins are not aware if there is a main<br>
> loop running, it<br>
> > is not mandatory.<br>
><br>
> Elements that require a GMainLoop create a thread and run a<br>
> GMainLoop<br>
> there. One example is souphttpsrc.<br>
><br>
</div>> That approach doesn't bring the same hazards of gst_bus_poll ?<br>
<br>
No, if you want to use a GMainLoop inside your element you also have to<br>
create a new GMainContext for it (which is then driven by your private<br>
main loop). There's no need to run a GLib main loop on the default<br>
context or any other ugly things.<br></blockquote><div><br>hmm, that's interesting, why gst_bus_poll use the default context them? <br><br>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)<br>
<br>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.<br>
<br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<br>
<br>------------------------------------------------------------------------------<br>
Beautiful is writing same markup. Internet Explorer 9 supports<br>
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.<br>
Spend less time writing and rewriting code and more time creating great<br>
experiences on the web. Be a part of the beta today<br>
<a href="http://p.sf.net/sfu/msIE9-sfdev2dev" target="_blank">http://p.sf.net/sfu/msIE9-sfdev2dev</a><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><a href="http://www.getgnulinux.org/windows">http://www.getgnulinux.org/windows</a><br>