Fixes https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/issues/288 Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1072>