gstreamer: update to not use g_memdup() which was deprecated in glib 2.68
glib 2.68 deprecates g_memdup(). Replace with g_memdup2() and add fallback if compiling against older versions.
If this method is alright, I'll update the other projects.
Edited by Tim-Philipp Müller