Re: Strange behaviour of sizeof(struct v4l2_queryctrl)

2015-01-27 Thread Francesco Marletta
Hello again, I was able to solve the problem... now the userspace program use the correct value for VIDIOC_QUERYCTRL. Regards Francesco Il 27/01/2015 11:43, Francesco Marletta ha scritto: Hello to anyone, I'm working on a problem with V4L2 on Linux Kernel 2.6.37. The problem arise when I tr

Strange behaviour of sizeof(struct v4l2_queryctrl)

2015-01-27 Thread Francesco Marletta
Hello to anyone, I'm working on a problem with V4L2 on Linux Kernel 2.6.37. The problem arise when I try to query a video device to list the controls it provides. When is call ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl) the function doesn't return 0 and errno is set to EINVAL This happen for

Strange behaviour of sizeof(struct v4l2_queryctrl)

2015-01-26 Thread Francesco Marletta
Hello to anyone, I'm working on a problem with V4L2 on Linux Kernel 2.6.37. The problem arise when I try to query a video device to list the controls it provides. When is call ioctl(fd, VIDIOC_QUERYCTRL, &queryctrl) the function doesn't return 0 and errno is set to EINVAL This happen for