Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3731 Fixes CVE-2024-44331 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7738>