aboutsummaryrefslogtreecommitdiffstats
path: root/utils/v4l2-compliance/v4l2-compliance.cpp
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil-cisco@xs4all.nl>2021-10-08 19:23:11 +0200
committerHans Verkuil <hverkuil-cisco@xs4all.nl>2021-10-08 19:23:11 +0200
commit493af03f3c576fad69c050d33215d1f4fc0d532d (patch)
tree47e9bfce69b0f346d75f852c6aa1e9b63de2b6ba /utils/v4l2-compliance/v4l2-compliance.cpp
parentfb4f059c875c9f9859cc5bce36c8170fc24f375d (diff)
v4l2-compliance: check entity function for codecs
Codec devices must have entity function MEDIA_ENT_F_PROC_VIDEO_ENCODER or _DECODER. Check this. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Diffstat (limited to 'utils/v4l2-compliance/v4l2-compliance.cpp')
-rw-r--r--utils/v4l2-compliance/v4l2-compliance.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/v4l2-compliance/v4l2-compliance.cpp b/utils/v4l2-compliance/v4l2-compliance.cpp
index 89923191..798c4221 100644
--- a/utils/v4l2-compliance/v4l2-compliance.cpp
+++ b/utils/v4l2-compliance/v4l2-compliance.cpp
@@ -1056,7 +1056,7 @@ void testNode(struct node &node, struct node &node_m2m_cap, struct node &expbuf_
if (node.is_media())
mi_media_info_for_fd(node.g_fd(), -1, &is_invalid);
else if (media_fd >= 0)
- ent_id = mi_media_info_for_fd(media_fd, node.g_fd(), &is_invalid);
+ ent_id = mi_media_info_for_fd(media_fd, node.g_fd(), &is_invalid, &node.function);
if (ent_id != MEDIA_ENT_F_UNKNOWN) {
memset(&node.entity, 0, sizeof(node.entity));

Privacy Policy