Use g_memdup2() where available and add fallback for older GLib versions
authorTim-Philipp Müller <tim@centricular.com>
Sat, 22 May 2021 17:54:49 +0000 (18:54 +0100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 2 Jun 2021 12:40:14 +0000 (12:40 +0000)
commit26143333899382035e66f0360019c67d4a252e78
tree87f44b6a353fd6523d5325492060b6357c0222bd
parentf3dcdfbd606d0c4cd1e7e12872d21d36919c043e
Use g_memdup2() where available and add fallback for older GLib versions

Alloc size is based on existing allocations and struct sizes.

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/gstreamer-vaapi/-/merge_requests/431>
gst-libs/gst/vaapi/gstvaapifilter.c
meson.build