Commit 43dbd3f6 authored by André Almeida's avatar André Almeida

Add check for capture_mplane capabilite

parent 0fd312c0
......@@ -131,7 +131,11 @@ int main(int argc, char **argv)
}
/* Querying device capabilities */
//xioctl(fd, VIDIOC_QUERYCAP, &caps);
xioctl(fd, VIDIOC_QUERYCAP, &caps);
if(caps.capabilities & V4L2_CAP_VIDEO_CAPTURE_MPLANE == 0){
perror("Device can't make a multi-planar video capture");
exit(EXIT_FAILURE);
}
/* Setting image format */
CLEAR(fmt);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment