Fixes compiler warnings with glib 2.70 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1279>