Oh ok :P<br><br>The following is ok now:<br><br>GstEvent *eos = gst_event_new_eos ();<br>gst_element_send_event (pipeline , eos);<br><br>Thx a lot, you resolved me a thing I am doing wrong for a while<br><br>Julien<br><br>
<div class="gmail_quote">2008/11/25 Wim Taymans <span dir="ltr">&lt;<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">On Tue, 2008-11-25 at 12:02 +0100, Julien Isorce wrote:<br>
&gt; Hi<br>
&gt;<br>
&gt; I join to this mail a simple test.<br>
&gt;<br>
&gt; The test demonstrates that when the pipeline is stopped when sending<br>
&gt; eos from the client code, then ffmux_asf does not write the index, so<br>
&gt; it&#39;s not possible to seek when playing back the result file.<br>
<br>
</div>You are not sending an EOS event but (forcefully) posting an EOS message<br>
from the pipeline to the application.<br>
<div class="Ih2E3d"><br>
&gt; If I set num_buffers=N instead of sending eos, then the muxer write<br>
&gt; the index.<br>
&gt;<br>
&gt; Yes it should be the same result because when GstBaseSrc reachs<br>
&gt; num_buffers_left = 0 then it return GST_FLOW_UNEXPECTED then an EOS is<br>
&gt; generated.<br>
&gt;<br>
&gt; So something is not flushed when ffmux receive eos in the first way.<br>
<br>
</div>ffmux never receives EOS because there is no such event generated.<br>
<div class="Ih2E3d"><br>
&gt;<br>
&gt; Is it a bug from gstffmpegmux or a problem in<br>
&gt; ffmpeg-asfmux-libavcodec ? or something else ?<br>
<br>
</div>It&#39;s a bug in the application.<br>
<font color="#888888"><br>
Wim<br>
</font><div class="Ih2E3d">&gt;<br>
&gt; ( ./test 0 rec.asf &nbsp; -&gt; index not written) &nbsp;(eos sent from a<br>
&gt; g_timeout_add callback)<br>
&gt; ( ./test 1 rec.asf &nbsp; -&gt; asf correclty generated) &nbsp;(use num_buffers=N)<br>
&gt;<br>
&gt; Sincerely<br>
&gt;<br>
&gt; Julien<br>
</div><div><div></div><div class="Wj3C7c">&gt; -------------------------------------------------------------------------<br>
&gt; This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
&gt; Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
&gt; Grand prize is a trip for two to an Open Source event anywhere in the world<br>
&gt; <a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</a><br>
&gt; _______________________________________________ gstreamer-devel mailing list <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a> <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>

<br>
<br>
-------------------------------------------------------------------------<br>
This SF.Net email is sponsored by the Moblin Your Move Developer&#39;s challenge<br>
Build the coolest Linux based applications with Moblin SDK &amp; win great prizes<br>
Grand prize is a trip for two to an Open Source event anywhere in the world<br>
<a href="http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/" target="_blank">http://moblin-contest.org/redirect.php?banner_id=100&amp;url=/</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>
</div></div></blockquote></div><br>