The previous code had a potential failure for multiple caps features. Now each caps feature in each structure is reviewed, and if it has a supported feature, the structure is processed. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1024>