This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit 865c88e34b9e5e64e481c319bc3571e33175f25c
Author: SPRESENSE <41312067+sprese...@users.noreply.github.com>
AuthorDate: Thu Jan 18 16:51:02 2024 +0900

    drivers/video: Add elems setting
    
    Add elems setting to ioctl(VIDIOC_QUERY_EXT_CTRL)
    for V4L2 compatibility.
---
 drivers/video/video.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/video/video.c b/drivers/video/video.c
index 069445ca30..c66e24a0aa 100644
--- a/drivers/video/video.c
+++ b/drivers/video/video.c
@@ -2152,6 +2152,7 @@ static int video_query_ext_ctrl(FAR struct video_mng_s 
*vmng,
 
   attr->flags      = 0;
   attr->elem_size  = 0;
+  attr->elems      = 1;
   attr->nr_of_dims = 0;
   memset(attr->dims, 0, sizeof(attr->dims));
 

Reply via email to