Well, problem fixed. Thanks for the help.<br><br>The problem was actually with basesink.<br><br>After a NEWSEGMENT event,<span style="font-family: monospace;"> gst_segment_init()</span><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstSegment.html#gst-segment-init">
<code class="function"></code></a> is called, resetting the value returned by gst_segment_to_running_time() to 0.<br><br>Now, if the pipeline has been running for 5 seconds prior to the seek event, the difference between basesink-&gt;base_time and the internal time of the pipeline clock would be 5 seconds.
<br>Therefore, gst_clock_wait_id() would return GST_CLOCK_EARLY for any buffer earlier than 5 seconds into the NEW (post-seek) segment. <br>And that caused 5 seconds worth of buffers to be processed as fast as possible.<br>
<br>I&#39;m not sure if this is a problem with basesink, or just my usage of it (in which case, I&#39;d appreciate knowing), but what I did to solve this was to reset basesink-&gt;base_time to the clock&#39;s internal time on a NEWSEGMENT event.
<br><br>Thanks,<br>Itay.<br><br><div><span class="gmail_quote">On 8/25/07, <b class="gmail_sendername">Andy Wingo</b> &lt;<a href="mailto:wingo@pobox.com">wingo@pobox.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Fri 24 Aug 2007 23:08, &quot;Itay Kirshenbaum&quot; &lt;<a href="mailto:ikirsh@gmail.com">ikirsh@gmail.com</a>&gt; writes:<br><br>&gt; Is there any other element in that pipeline that can queue a large<br>&gt; number of buffers (rtpmp4vpay maybe? I&#39;m not familiar with its
<br>&gt; behavior), hence causing this problem?<br><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; On Thu 23 Aug 2007 21:02, &quot;Itay Kirshenbaum&quot; &lt;<a href="mailto:ikirsh@gmail.com">ikirsh@gmail.com</a>&gt; writes:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &gt; filesrc -&gt; queue -&gt; avidemux -&gt; queue -&gt; rtpmp4pay -&gt; udpsink
<br><br>Try putting identities in between various elements, then run with<br>gst-launch -v. See e.g. the output of gst-launch -v fakesrc ! identity !<br>fakesink.<br><br>Cheers,<br><br>Andy.<br>--<br><a href="http://wingolog.org/">
http://wingolog.org/</a><br></blockquote></div><br>