mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
rtsp-stream: use new gst_buffer_new_memdup()
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/208>
This commit is contained in:
parent
6c9d6fd986
commit
a5b30f179b
1 changed files with 1 additions and 3 deletions
|
@ -5986,9 +5986,7 @@ handle_mikey_data (GstRTSPStream * stream, guint8 * data, gsize size)
|
||||||
pkd = (const GstMIKEYPayloadKeyData *)
|
pkd = (const GstMIKEYPayloadKeyData *)
|
||||||
gst_mikey_payload_kemac_get_sub (&kemac->pt, 0);
|
gst_mikey_payload_kemac_get_sub (&kemac->pt, 0);
|
||||||
|
|
||||||
key =
|
key = gst_buffer_new_memdup (pkd->key_data, pkd->key_len);
|
||||||
gst_buffer_new_wrapped (g_memdup (pkd->key_data, pkd->key_len),
|
|
||||||
pkd->key_len);
|
|
||||||
|
|
||||||
/* go over all crypto sessions and create the security policy for each
|
/* go over all crypto sessions and create the security policy for each
|
||||||
* SSRC */
|
* SSRC */
|
||||||
|
|
Loading…
Reference in a new issue