This is the same fix that was applied in gst-plugins-good in https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/603 and fixes the testsuite running in gst-build. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-editing-services/-/merge_requests/219>