<meta http-equiv="Content-Type" content="text/html; charset=utf-8">


<p dir="ltr">Hi, thank you for your detailed answer. </p>
<p dir="ltr">The main problem is that I can't modify what the module entry is, so I can't send my GstBuffer to it. This eliminates the a) solution. Secondly, I can't modify what this module is doing with the raw data. This  eliminates the b). The c) is the
 solution I was thinking about yes :)<br>
But when I have the timestamps information how can I give it to the new GstBuffer ?</p>
<div class="quote">Le 26 juin 2015 16:38, "Stirling Westrup [via GStreamer-devel]" <ml-node+<a href="/user/SendEmail.jtp?type=node&node=4672479&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> a écrit :<br type="attribution">
</div>
<div>
<div dir="ltr">
<div class="x_gmail_extra"><br>
<div class="x_gmail_quote">On Thu, Jun 25, 2015 at 4:29 PM, Totoketchup <span dir="ltr">
<<a href="/user/SendEmail.jtp?type=node&node=4672473&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="x_gmail_quote" style="border-left:2px solid #CCCCCC; padding:0 1em; 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="x_gmail_signature">Stirling Westrup<br>
Programmer, Entrepreneur.<br>
<a href="https://www.linkedin.com/e/fpf/77228" target="_blank" rel="nofollow" link="external">https://www.linkedin.com/e/fpf/77228</a><br>
<a href="http://www.linkedin.com/in/swestrup" target="_blank" rel="nofollow" link="external">http://www.linkedin.com/in/swestrup</a><br>
<a href="http://technaut.livejournal.com" target="_blank" rel="nofollow" link="external">http://technaut.livejournal.com</a><br>
<a href="http://sourceforge.net/users/stirlingwestrup" target="_blank" rel="nofollow" link="external">http://sourceforge.net/users/stirlingwestrup</a></div>
</div>
</div>
<br>
_______________________________________________ <br>
gstreamer-devel mailing list <br>
<a href="/user/SendEmail.jtp?type=node&node=4672473&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>
<br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_top" rel="nofollow" link="external">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br>
<br>
<hr noshade="noshade" size="1" color="#cccccc">
<div style="color:#444; font:12px tahoma,geneva,helvetica,arial,sans-serif">
<div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
<a href="http://gstreamer-devel.966125.n4.nabble.com/Problem-with-the-same-custom-element-multiple-times-tp4671995p4672473.html" target="_top" rel="nofollow" link="external">http://gstreamer-devel.966125.n4.nabble.com/Problem-with-the-same-custom-element-multiple-times-tp4671995p4672473.html</a>
</div>
<div style="color:#666; font:11px tahoma,geneva,helvetica,arial,sans-serif; margin-top:.4em; line-height:1.5em">
To unsubscribe from Problem with the same custom element multiple times, <a href="" target="_top" rel="nofollow" link="external">
click here</a>.<br>
<a href="http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" rel="nofollow" style="font:9px serif" target="_top" link="external">NAML</a>
</div>
</div>




        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/Problem-with-the-same-custom-element-multiple-times-tp4671995p4672479.html">Re: Problem with the same custom element multiple times</a><br/>
Sent from the <a href="http://gstreamer-devel.966125.n4.nabble.com/">GStreamer-devel mailing list archive</a> at Nabble.com.<br/>