v4l2codecs: h264: Improve ABI check
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 28 Jan 2022 19:39:35 +0000 (14:39 -0500)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sat, 29 Jan 2022 15:33:49 +0000 (15:33 +0000)
commit47bfa71530c90c7490f60789ff64e4d6d0eabfd9
tree85fb46e01ed13e10d68962bd357a1174109bda27
parent4254920b723edd8d869d9fdc878b7f6234a0184a
v4l2codecs: h264: Improve ABI check

This moves the ABI check to the registration, so we don't expose
decoders with the wrong ABI or that are just broken somehow. It
also makes few enhancement:

- Handle missing, but required controls
- Prints the controls macro name instead of id

This should fix RK3399 support with a currently release minor
regression in the Hantro driver that cause errors.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1599>
subprojects/gst-plugins-bad/sys/v4l2codecs/gstv4l2codech264dec.c