qtdemux: use g_memdup2() as g_memdup() is deprecated
authorTim-Philipp Müller <tim@centricular.com>
Sun, 23 May 2021 14:42:38 +0000 (15:42 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Wed, 2 Jun 2021 16:34:38 +0000 (17:34 +0100)
commit21c90afd9242ab14d880bd9cfdf82caf89924351
tree83e2eb093c960c1af7cd67b36625a0c38eaa17e6
parent05854f74c52b713ad68e8ecae9abab8e0cbb3956
qtdemux: use g_memdup2() as g_memdup() is deprecated

- atom nodes/bytereader sizes are already checked
- palettes: are fixed/known size

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>
gst/isomp4/qtdemux.c