<br><br><div class="gmail_quote">2009/8/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="im">On Tue, 2009-08-25 at 16:40 +0200, Julien Isorce wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I attach to this mail a minimal test to provide a gstreamer behaviour<br>
&gt; that I do not understand.<br>
&gt;<br>
&gt; Actually, I would like to know why the clock can be not set yet<br>
&gt; whereas some buffers are dispatched.<br>
&gt; I mean I put an identity element between a videotestsrc and a<br>
&gt; fakesink,<br>
&gt; and I am checking the clock availability in the identity handoff<br>
&gt; callback.<br>
&gt;<br>
&gt; Why am I able to get raw video buffers from handoff callback whereas<br>
&gt; no clock is set on identity yet ?<br>
&gt; Moreover in this case the timestamp buffer is valid, but I assume this<br>
&gt; timestamp was set by the internal clock.<br>
&gt; I can understand that the internal clock was already there before<br>
&gt; playing,<br>
&gt; and I can also understand that the internal clock is affected on<br>
&gt; elements only when going to playing state (or at least ready).<br>
&gt; But I think the clock should be always available from a handoff<br>
&gt; callback, at least if the buffer timestamp is valid.<br>
&gt;<br>
<br>
</div>The first buffer is part of preroll in PAUSED. It is only after all<br>
sinks receive a buffer that a clock is selected and the pipeline is set<br>
to PLAYING.</blockquote><div><br>ok thx for the explanation.<br><br>In a more complex pipeline, it can take some times before all sinks receive a buffer.<br>And so an element can receive a lot of buffers <br>before all elements received a buffer ?<br>
I mean a lot of handoff calls with no access to the clock inside the callback.<br>It could explain the behavior I have there in a use case.<br><br>Anyway, I assume i should consider the buffers only after that playing state is reached.<br>
<br>Sincerely<br><br>Julien<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
<br>
Wim<br>
<div class="im"><br>
&gt; ( to compile the test: gcc -Wall $(pkg-config --cflags --libs<br>
&gt; gstreamer-0.10) main.c -o main )<br>
&gt;<br>
&gt; (output:<br>
&gt;<br>
&gt; identity has clock: 0, timestamp is valid: 1<br>
&gt; pipeline is now playing<br>
&gt; new clock set from: pipeline<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; identity has clock: 1, timestamp is valid: 1<br>
&gt; End of stream<br>
&gt;<br>
&gt; )<br>
&gt;<br>
&gt; Sincerely<br>
&gt;<br>
&gt; Julien<br>
</div>&gt; ------------------------------------------------------------------------------<br>
&gt; Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
&gt; trial. Simplify your report design, integration and deployment - and focus on<br>
&gt; what you do best, core application coding. Discover what&#39;s new with<br>
&gt; Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</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>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what&#39;s new with<br>
Crystal Reports now.  <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</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>
</blockquote></div><br>