Commit cb7e45b8 authored by André Almeida's avatar André Almeida
Browse files

Add check for streaming at query capabilities

parent ca425d4e
......@@ -66,10 +66,15 @@ void v4l2_querycap(int fd){
struct v4l2_capability 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");
if(caps.capabilities & V4L2_CAP_STREAMING == 0){
perror("Device don't support streaming");
void v4l2_s_fmt(int fd, struct context ctx){
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