Fixes https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/issues/478 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer-rs/-/merge_requests/1302>