From 620e9323c553e7800256a936bbefda3bacb14a23 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 13 Aug 2021 19:32:53 +0530 Subject: [PATCH] flv: use g_memdup2() as g_memdup() is deprecated g_memdup() is deprecated since GLib 2.68 and we want to avoid deprecation warnings with recent versions of GLib. Part-of: --- gst/flv/gstindex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/flv/gstindex.c b/gst/flv/gstindex.c index 79ceb0420f..4b11bb2198 100644 --- a/gst/flv/gstindex.c +++ b/gst/flv/gstindex.c @@ -813,7 +813,7 @@ gst_index_add_associationv (GstIndex * index, gint id, entry->type = GST_INDEX_ENTRY_ASSOCIATION; entry->id = id; entry->data.assoc.flags = flags; - entry->data.assoc.assocs = g_memdup (list, sizeof (GstIndexAssociation) * n); + entry->data.assoc.assocs = g_memdup2 (list, sizeof (GstIndexAssociation) * n); entry->data.assoc.nassocs = n; gst_index_add_entry (index, entry);