mirror of
https://github.com/Motion-Project/motion.git
synced 2026-05-19 03:55:43 -04:00
Fix a little error
This commit is contained in:
2
video2.c
2
video2.c
@@ -494,7 +494,7 @@ static int v4l2_set_mmap(src_v4l2_t * vid_source)
|
||||
u32 buffer_index;
|
||||
|
||||
/* Does the device support streaming? */
|
||||
if (!vid_source->cap.capabilities & V4L2_CAP_STREAMING)
|
||||
if (!vid_source->cap.capabilities && V4L2_CAP_STREAMING)
|
||||
return -1;
|
||||
|
||||
memset(&vid_source->req, 0, sizeof(struct v4l2_requestbuffers));
|
||||
|
||||
Reference in New Issue
Block a user