summaryrefslogtreecommitdiff
path: root/gst-libs/gst/rtsp/gstrtspmessage.c
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2021-05-23 23:51:27 +0100
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>2021-06-02 14:21:02 +0000
commit577dabf7b1ec020e8fb3e0b9106cabc40d0978b2 (patch)
tree81b65a4ce952d8757f2171e48008d0ac2caa6065 /gst-libs/gst/rtsp/gstrtspmessage.c
parenteb47c5aa2d7ec0158b7819c792871f6575840769 (diff)
Use g_memdup2() where available and add fallback for older GLib versions
g_memdup() is deprecated since GLib 2.68 and we want to avoid deprecation warnings with recent versions of GLib. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/1171>
Diffstat (limited to 'gst-libs/gst/rtsp/gstrtspmessage.c')
-rw-r--r--gst-libs/gst/rtsp/gstrtspmessage.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/rtsp/gstrtspmessage.c b/gst-libs/gst/rtsp/gstrtspmessage.c
index 3b693fa16..dea542120 100644
--- a/gst-libs/gst/rtsp/gstrtspmessage.c
+++ b/gst-libs/gst/rtsp/gstrtspmessage.c
@@ -943,7 +943,7 @@ gst_rtsp_message_set_body (GstRTSPMessage * msg, const guint8 * data,
{
g_return_val_if_fail (msg != NULL, GST_RTSP_EINVAL);
- return gst_rtsp_message_take_body (msg, g_memdup (data, size), size);
+ return gst_rtsp_message_take_body (msg, g_memdup2 (data, size), size);
}
/**