<br><br><div class="gmail_quote">2010/11/18 Sebastian Dröge <span dir="ltr">&lt;<a href="mailto:sebastian.droege@collabora.co.uk">sebastian.droege@collabora.co.uk</a>&gt;</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">&gt;<br>
&gt;<br>
&gt; On Tue, Nov 16, 2010 at 6:28 PM, David Schleef &lt;<a href="mailto:ds@entropywave.com">ds@entropywave.com</a>&gt;<br>
&gt; wrote:<br>
&gt;         On Tue, Nov 16, 2010 at 10:28:23AM -0200, Tiago Katcipis<br>
&gt;         wrote:<br>
&gt;         &gt; but to make use of the async API it is needed a GMainLoop,<br>
&gt;         and there is the<br>
&gt;         &gt; problem :-), gst plugins are not aware if there is a main<br>
&gt;         loop running, it<br>
&gt;         &gt; is not mandatory.<br>
&gt;<br>
&gt;         Elements that require a GMainLoop create a thread and run a<br>
&gt;         GMainLoop<br>
&gt;         there.  One example is souphttpsrc.<br>
&gt;<br>
</div>&gt; That approach doesn&#39;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&#39;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&#39;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&#39;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 &amp; 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>