<div dir="ltr"><div><div><div><div><div>Thanks for your answer.<br></div>The crash was about another mistake I did, but I solve it.<br></div>I use  GST_TYPE_BUFFER and the problem is that I think the buffer was not correctly created, because in the log file I can see that it was another key inserted: <br><br>srtp-key=(buffer)303132333435363738393031323334353637383930313233343536373839, srtp-cipher=(string)aes-128-icm, srtp-auth=(string)hmac-sha1-80 [...]<br><br></div>And the key I am trying to insert is <span class="im">char key[]="0123456789012345678901234567890<br><br></span></div><div><span class="im">Why is this happening?<br></span></div><div><span class="im">Thanks!!<br></span></div><span class="im"></span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-21 20:56 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"><span class="">On Tue, 2015-07-21 at 14:36 +0200, Alicia Romero wrote:<br>
> Hi!<br>
><br>
> I want to set to udpsrc the srtp-key for using the plugin srtp:<br>
><br>
> [...]<br>
> char key[]="0123456789012345678901234567890"<br>
><br>
> GstBuffer *buf = gst_buffer_new_wrapped ( g_memdup(key,<br>
> strlen(key_ptr)),<br>
><br>
> strlen(key_ptr));<br>
><br>
> GstCaps *caps = gst_caps_new_simple ("application/x-srtp",<br>
>       "media", G_TYPE_STRING, "video",<br>
>       "clock-rate", G_TYPE_INT, 90000,<br>
>       "srtp-key", G_TYPE_POINTER, buf,<br>
>       NULL);<br>
><br>
> [..]<br>
><br>
><br>
> But this is not workin, in fact there is a SIGSEGV.<br>
><br>
> I don't know how to do that, can anyone help me?<br>
<br>
</span>Try ..., "srtp-key", GST_TYPE_BUFFER, buf, ...<br>
<br>
and gst_buffer_unref (buf) afterwards.<br>
<br>
But it should not have crashed anyway. Do you have a stack trace of the<br>
crash?<br>
<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>
_______________________________________________<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>
</blockquote></div><br></div>