vapostproc: Refactor gst_va_vpp_complete_caps_features()
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 13 Oct 2021 15:08:12 +0000 (17:08 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 18 Oct 2021 19:14:15 +0000 (19:14 +0000)
commitc00ad9e70c1745a17c9e0b3cdc7ade1911564940
tree89cf87aab53f53aee8f9e75b6285e8395407e845
parentd12991c979004144c9bcfbdeffa2908404fa61d6
vapostproc: Refactor gst_va_vpp_complete_caps_features()

gst_va_vpp_complete_caps_features() now receives the @feature_name to
add and return if @caps doesn't provide it.

So, instead of two nested loops, now the function is a single loop,
traversing @caps to find if each structure already contains the requested
@features_name.

It's important to add missing caps features with @caps, in order to
not lost information.

The function caller does the external loop by calling per each
available caps feature.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1024>
subprojects/gst-plugins-bad/sys/va/gstvavpp.c