Fixes https://gitlab.freedesktop.org/gstreamer/gst-python/-/issues/57 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1351>