aboutsummaryrefslogtreecommitdiffstats
path: root/utils/libv4l2util
diff options
context:
space:
mode:
Diffstat (limited to 'utils/libv4l2util')
-rw-r--r--utils/libv4l2util/v4l2_driver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/utils/libv4l2util/v4l2_driver.c b/utils/libv4l2util/v4l2_driver.c
index 67982047..e21e85d8 100644
--- a/utils/libv4l2util/v4l2_driver.c
+++ b/utils/libv4l2util/v4l2_driver.c
@@ -436,7 +436,8 @@ int v4l2_gettryset_fmt_cap (struct v4l2_driver *drv, enum v4l2_direction dir,
perror("VIDIOC_G_FMT failed\n");
}
return ret;
- } else if (dir & (~(V4L2_TRY|V4L2_SET)) ) {
+ }
+ if (dir & (~(V4L2_TRY | V4L2_SET)) ) {
perror ("Invalid direction\n");
return EINVAL;
}

Privacy Policy