<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 25, 2015 at 4:29 PM, Totoketchup <span dir="ltr"><<a href="mailto:anthony.damato@hotmail.fr" target="_blank">anthony.damato@hotmail.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi !<br>
<br>
My element (TetrysElement) adds redundancy (linear combination between<br>
packets) and adds a header (to distinguish each packet during the<br>
reception).<br>
But, I have to "break" the structure of the GstBuffer in the chain loop to<br>
send the data to another module. When the module has finished, he sends back<br>
in a callback function the data with header and the redundancy packet. Then<br>
I create a new GstBuffer that I fill with this and I send it to the next<br>
element. But during this 'travel', I have lost the timestamps information.<br>
Do you know how can I have it back ?<br>
<br></blockquote><div>I don't see how this is even a problem. You can solve this any number of ways, by just including the timestamp data in the round trip. This could be any one of <br><br></div><div>a) Send the GstBuffer to the redundancy module, and it builds and returns a GstBuffer with the new data and timestamps transferred over. (this is what I would do).<br><br></div><div>b) Include the timestamps in the raw data you send to the redundancy module, and have it return them in its callback.<br><br></div><div>c) Hold onto the original buffer and its data until the callback, associate them somehow, and build a new GstBuffer using the saved data and the callback data.  I would only recommend this if the redundancy module is an opaque library with a bad interface (ie, no round trip of user data).<br><br></div><div> <br clear="all"></div></div><br>-- <br><div class="gmail_signature">Stirling Westrup<br>Programmer, Entrepreneur.<br><a href="https://www.linkedin.com/e/fpf/77228" target="_blank">https://www.linkedin.com/e/fpf/77228</a><br><a href="http://www.linkedin.com/in/swestrup" target="_blank">http://www.linkedin.com/in/swestrup</a><br><a href="http://technaut.livejournal.com" target="_blank">http://technaut.livejournal.com</a><br><a href="http://sourceforge.net/users/stirlingwestrup" target="_blank">http://sourceforge.net/users/stirlingwestrup</a></div>
</div></div>