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:
Tim-Philipp Müller 2021-05-24 18:58:00 +01:00
parent 6c9d6fd986
commit a5b30f179b

View file

@ -5986,9 +5986,7 @@ handle_mikey_data (GstRTSPStream * stream, guint8 * data, gsize size)
pkd = (const GstMIKEYPayloadKeyData *)
gst_mikey_payload_kemac_get_sub (&kemac->pt, 0);
key =
gst_buffer_new_wrapped (g_memdup (pkd->key_data, pkd->key_len),
pkd->key_len);
key = gst_buffer_new_memdup (pkd->key_data, pkd->key_len);
/* go over all crypto sessions and create the security policy for each
* SSRC */