Same change as in h264parse. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7931>