set srtp-key to udpsrc caps
Tim Müller
tim at centricular.com
Wed Jul 22 01:25:22 PDT 2015
On Wed, 2015-07-22 at 09:41 +0200, Alicia Romero wrote:
Hi Alicia,
>
> 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:
>
> srtp-key=(buffer)303132333435363738393031323334353637383930313233343536373839, srtp-cipher=(string)aes-128-icm, srtp-auth=(string)hmac-sha1-80 [...]
>
>
> And the key I am trying to insert is char
> key[]="0123456789012345678901234567890
>
>
> Why is this happening?
It's inserting what you asked for :)
30 = 0x30 = hex code for ASCII character '0'.
Perhaps you wanted:
const guint8 key[] = { 0, 1, 2, 3, 4, 5, 6, 7, ... };
buf = gst_buffer_new_wrapped (g_memdup (key, sizeof (key)), sizeof
(key));
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list