Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/issues/684 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/749>