sdp: use g_strdup instead of strdup
authorIgnacio Casal Quinteiro <qignacio@amazon.com>
Mon, 28 Nov 2022 09:19:20 +0000 (10:19 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 28 Nov 2022 09:36:18 +0000 (09:36 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3475>

subprojects/gst-plugins-base/gst-libs/gst/sdp/gstsdpmessage.c

index a42757b..17e1f64 100644 (file)
@@ -3439,7 +3439,7 @@ gst_sdp_parse_rtpmap (const gchar * rtpmap, gint * payload, gchar ** name,
     *params = NULL;
     goto out;
   } else {
-    *name = strdup (*name);
+    *name = g_strdup (*name);
   }
 
   t = p;