+libv4l-0.6.0
+------------
+* Recognize disabled controls and replace with fake equivalents where
+ available
+
libv4l-0.5.99
-----------
+-------------
* Link libv4lconvert with -lm for powf by Gregor Jasny
* Fix black screen on devices with hardware gamma control
* Fix crash with devices on which we do not emulate fake controls
* Add a patch by Hans Petter Selasky <hselasky@freebsd.org>, which should
lead to allowing use of libv4l (and the Linux webcam drivers ported
- to userspace usb drivers) on FreeBSd, this is a work in progress
+ to userspace usb drivers) on FreeBSD, this is a work in progress
libv4l-0.5.98
-------------
struct v4lcontrol_data *v4lcontrol_create(int fd, int always_needs_conversion)
{
int shm_fd;
- int i, init = 0;
+ int i, rc, init = 0;
char *s, shm_name[256];
struct v4l2_capability cap;
struct v4l2_queryctrl ctrl;
if (always_needs_conversion || v4lcontrol_needs_conversion(data)) {
for (i = 0; i < V4LCONTROL_AUTO_ENABLE_COUNT; i++) {
ctrl.id = fake_controls[i].id;
- if (SYS_IOCTL(data->fd, VIDIOC_QUERYCTRL, &ctrl) == -1)
+ rc = SYS_IOCTL(data->fd, VIDIOC_QUERYCTRL, &ctrl);
+ if (rc == -1 || (rc == 0 && (ctrl.flags & V4L2_CTRL_FLAG_DISABLED)))
data->controls |= 1 << i;
}
}