Use g_memdup2() where available and add fallback for older GLib versions
authorTim-Philipp Müller <tim@centricular.com>
Sat, 22 May 2021 18:39:32 +0000 (19:39 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 2 Jun 2021 16:34:38 +0000 (17:34 +0100)
commitbf56fd97b6cec2a059abd29b144675aad818e442
tree9912970b783a7ffd9d70b970c821a53cba2ae9d6
parentaf3527ce24a0f9a43723e25812e48f590d37f5b5
Use g_memdup2() where available and add fallback for older GLib versions

- png: alloc size variable is a png type that's always 32-bit
- vpx: alloc size based on existing allocation
- wavpack: alloc size based on existing allocation
- icles: gdkpixbufoverlay: trusted and hard-coded input data
- rtp tests: rtp-payloading, vp8, vp9, h264, h265: trusted and/or static input data

g_memdup() is deprecated since GLib 2.68 and we want to avoid
deprecation warnings with recent versions of GLib.

Also use gst_buffer_new_memdup() instead of _wrapped(g_memdup(),..)

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/993>
ext/libpng/gstpngdec.c
ext/vpx/gstvpxenc.c
ext/wavpack/gstwavpackenc.c
meson.build
tests/check/elements/rtp-payloading.c
tests/check/elements/rtph264.c
tests/check/elements/rtph265.c
tests/check/elements/rtpopus.c
tests/check/elements/rtpvp8.c
tests/check/elements/rtpvp9.c
tests/icles/gdkpixbufoverlay-test.c