summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/emotion/emotion_webcam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/emotion/emotion_webcam.c b/src/lib/emotion/emotion_webcam.c
index 5003030033..fe3c949a46 100644
--- a/src/lib/emotion/emotion_webcam.c
+++ b/src/lib/emotion/emotion_webcam.c
@@ -117,7 +117,7 @@ _emotion_check_device(Emotion_Webcam *ew)
117 if (ioctl(fd, VIDIOC_QUERYCAP, &caps) == -1) goto on_error; 117 if (ioctl(fd, VIDIOC_QUERYCAP, &caps) == -1) goto on_error;
118 118
119 /* Likely not a webcam */ 119 /* Likely not a webcam */
120 if (!caps.capabilities & V4L2_CAP_VIDEO_CAPTURE) goto on_error; 120 if (!(caps.capabilities & V4L2_CAP_VIDEO_CAPTURE)) goto on_error;
121 if (caps.capabilities & V4L2_CAP_TUNER 121 if (caps.capabilities & V4L2_CAP_TUNER
122 || caps.capabilities & V4L2_CAP_RADIO 122 || caps.capabilities & V4L2_CAP_RADIO
123 || caps.capabilities & V4L2_CAP_MODULATOR) 123 || caps.capabilities & V4L2_CAP_MODULATOR)