diff options
author | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-04-15 14:03:32 +0200 |
---|---|---|
committer | hans@rhel5-devel.localdomain <hans@rhel5-devel.localdomain> | 2009-04-15 14:03:32 +0200 |
commit | 3c523ed18793284d90b8b2940f85e747dd24ac47 (patch) | |
tree | ccbf347f36110333101e29bd5ffdc0b9d115cc17 /v4l2-apps | |
parent | 18d8f58054d630d7f1c80f5586aaa7331d4f46e7 (diff) | |
download | mediapointer-dvb-s2-3c523ed18793284d90b8b2940f85e747dd24ac47.tar.gz mediapointer-dvb-s2-3c523ed18793284d90b8b2940f85e747dd24ac47.tar.bz2 |
libv4l: Don't add "fake" controls when not doing conversion
From: Hans de Goede <hdegoede@redhat.com>
Since all things fake controls enable (such as whitebalancing) depend upon
libv4lconvert_convert being called, do not fake controls when conversion
is disabled.
Priority: normal
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'v4l2-apps')
-rw-r--r-- | v4l2-apps/libv4l/libv4l2/libv4l2.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/v4l2-apps/libv4l/libv4l2/libv4l2.c b/v4l2-apps/libv4l/libv4l2/libv4l2.c index 8d01b034c..fc5e63eaa 100644 --- a/v4l2-apps/libv4l/libv4l2/libv4l2.c +++ b/v4l2-apps/libv4l/libv4l2/libv4l2.c @@ -687,6 +687,9 @@ int v4l2_ioctl (int fd, unsigned long int request, ...) case VIDIOC_QUERYCTRL: case VIDIOC_G_CTRL: case VIDIOC_S_CTRL: + if (!(devices[index].flags & V4L2_DISABLE_CONVERSION)) + is_capture_request = 1; + break; case VIDIOC_QUERYCAP: is_capture_request = 1; break; |