Might be worth porting this patch... https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/commit/1081a2ee50885f69375f12144bda6ae3bf3c3498