<div dir="ltr"><div><div><div>Thanks for your answer. You were right, but if I use: <br>const guint8 key[] = { 0, 1, 2, 3, 4, 5, 6, 7, ... };<br>buf = gst_buffer_new_wrapped (g_memdup (key, sizeof (key)), sizeof(key));<br><br></div>I get: srtp-key=(buffer)000102030405060708090001020304050607080900010203040506070809<br><br></div></div>Thanks!!!<br><div><div><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-22 10:25 GMT+02:00 Tim Müller <span dir="ltr"><<a href="mailto:tim@centricular.com" target="_blank">tim@centricular.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 2015-07-22 at 09:41 +0200, Alicia Romero wrote:<br>
<br>
Hi Alicia,<br>
<span class=""><br>
><br>
> I use GST_TYPE_BUFFER and the problem is that I think the buffer was<br>
> not correctly created, because in the log file I can see that it was<br>
> another key inserted:<br>
><br>
> srtp-key=(buffer)303132333435363738393031323334353637383930313233343536373839, srtp-cipher=(string)aes-128-icm, srtp-auth=(string)hmac-sha1-80 [...]<br>
><br>
><br>
> And the key I am trying to insert is char<br>
> key[]="0123456789012345678901234567890<br>
><br>
><br>
> Why is this happening?<br>
<br>
</span>It's inserting what you asked for :)<br>
<br>
30 = 0x30 = hex code for ASCII character '0'.<br>
<br>
Perhaps you wanted:<br>
<br>
const guint8 key[] = { 0, 1, 2, 3, 4, 5, 6, 7, ... };<br>
<br>
buf = gst_buffer_new_wrapped (g_memdup (key, sizeof (key)), sizeof<br>
(key));<br>
<span class="im HOEnZb"><br>
Cheers<br>
 -Tim<br>
<br>
--<br>
Tim Müller, Centricular Ltd - <a href="http://www.centricular.com" rel="noreferrer" target="_blank">http://www.centricular.com</a><br>
<br>
</span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</div></div></blockquote></div><br></div></div>