Hi,<br><br>I attach to this mail a minimal test to provide a gstreamer behaviour that I do not understand.<br><br>Actually, I would like to know why the clock can be not set yet whereas some buffers are dispatched.<br>I mean I put an identity element between a videotestsrc and a fakesink, <br>
and I am checking the clock availability in the identity handoff callback.<br><br>Why am I able to get raw video buffers from handoff callback whereas no clock is set on identity yet ?<br>Moreover in this case the timestamp buffer is valid, but I assume this timestamp was set by the internal clock.<br>
I can understand that the internal clock was already there before playing,<br>and I can also understand that the internal clock is affected on elements only when going to playing state (or at least ready).<br>But I think the clock should be always available from a handoff callback, at least if the buffer timestamp is valid.<br>
<br>( to compile the test: gcc -Wall $(pkg-config --cflags --libs gstreamer-0.10) main.c -o main )<br><br>(output:<br><br>
identity has clock: <b><span style="color: rgb(255, 0, 0);">0</span></b>, timestamp is valid: <b><span style="color: rgb(255, 0, 0);">1</span></b><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>