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->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'm not sure if this is a problem with basesink, or just my usage of it (in which case, I'd appreciate knowing), but what I did to solve this was to reset basesink->base_time to the clock'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> <<a href="mailto:wingo@pobox.com">wingo@pobox.com</a>> 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, "Itay Kirshenbaum" <<a href="mailto:ikirsh@gmail.com">ikirsh@gmail.com</a>> writes:<br><br>> Is there any other element in that pipeline that can queue a large<br>> number of buffers (rtpmp4vpay maybe? I'm not familiar with its
<br>> behavior), hence causing this problem?<br><br>> On Thu 23 Aug 2007 21:02, "Itay Kirshenbaum" <<a href="mailto:ikirsh@gmail.com">ikirsh@gmail.com</a>> writes:<br>><br>> > filesrc -> queue -> avidemux -> queue -> rtpmp4pay -> 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>