Commit 64da1279 authored by André Almeida's avatar André Almeida

Fix gcc warnings

parent 87fc8d5a
......@@ -69,11 +69,11 @@ void v4l2_querycap(int fd){
xioctl(fd, VIDIOC_QUERYCAP, &caps);
/* check if the driver can operate with this app */
if(caps.capabilities & V4L2_CAP_VIDEO_CAPTURE_MPLANE == 0){
if((caps.capabilities & V4L2_CAP_VIDEO_CAPTURE_MPLANE) == 0){
perror("Device can't make a multi-planar video capture");
exit(EXIT_FAILURE);
}
if(caps.capabilities & V4L2_CAP_STREAMING == 0){
if((caps.capabilities & V4L2_CAP_STREAMING) == 0){
perror("Device don't support streaming");
exit(EXIT_FAILURE);
}
......@@ -231,9 +231,7 @@ int main(int argc, char **argv)
ctx.img_width = 640;
ctx.size_image = ctx.img_height * ctx.img_width;
struct v4l2_format fmt;
struct v4l2_buffer buf;
struct v4l2_requestbuffers req;
struct v4l2_plane planes[ctx.num_planes];
enum v4l2_buf_type type;
fd_set fds;
......
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