rtsp-stream: use new gst_buffer_new_memdup()
authorTim-Philipp Müller <tim@centricular.com>
Mon, 24 May 2021 17:58:00 +0000 (18:58 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Mon, 24 May 2021 17:58:00 +0000 (18:58 +0100)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-rtsp-server/-/merge_requests/208>

gst/rtsp-server/rtsp-stream.c

index b0b7cee..1495b73 100644 (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 */