sdp: Avoid using g_memdup() since it is deprecated
g_memdup() is deprecated since GLib 2.68 and we want to avoid deprecation warnings with recent versions of GLib. Instead of using g_memdup2(), we can simply use the new gst_buffer_new_memdup() added in 1.19.x