... and fix bunch of GCC reported warnings Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6435>