<br><br><div class="gmail_quote">2009/8/25 Wim Taymans <span dir="ltr"><<a href="mailto:wim.taymans@gmail.com">wim.taymans@gmail.com</a>></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>
> Hi,<br>
><br>
> I attach to this mail a minimal test to provide a gstreamer behaviour<br>
> that I do not understand.<br>
><br>
> Actually, I would like to know why the clock can be not set yet<br>
> whereas some buffers are dispatched.<br>
> I mean I put an identity element between a videotestsrc and a<br>
> fakesink,<br>
> and I am checking the clock availability in the identity handoff<br>
> callback.<br>
><br>
> Why am I able to get raw video buffers from handoff callback whereas<br>
> no clock is set on identity yet ?<br>
> Moreover in this case the timestamp buffer is valid, but I assume this<br>
> timestamp was set by the internal clock.<br>
> I can understand that the internal clock was already there before<br>
> playing,<br>
> and I can also understand that the internal clock is affected on<br>
> elements only when going to playing state (or at least ready).<br>
> But I think the clock should be always available from a handoff<br>
> callback, at least if the buffer timestamp is valid.<br>
><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>
> ( to compile the test: gcc -Wall $(pkg-config --cflags --libs<br>
> gstreamer-0.10) main.c -o main )<br>
><br>
> (output:<br>
><br>
> identity has clock: 0, timestamp is valid: 1<br>
> pipeline is now playing<br>
> new clock set from: pipeline<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> identity has clock: 1, timestamp is valid: 1<br>
> End of stream<br>
><br>
> )<br>
><br>
> Sincerely<br>
><br>
> Julien<br>
</div>> ------------------------------------------------------------------------------<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'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>
> _______________________________________________ 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'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>