mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/1052>
This commit is contained in:
parent
04963cac86
commit
620e9323c5
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue