Commit 70aaa23d authored by Ghislain MARY's avatar Ghislain MARY

Fix compilation if some V4L2 definition are not present.

parent 0c2e81ed
......@@ -635,8 +635,15 @@ static void msv4l2_detect(MSWebCamManager *obj){
camera_caps = cap.device_caps;
}
#endif
if (((camera_caps & V4L2_CAP_VIDEO_CAPTURE) || (camera_caps & V4L2_CAP_VIDEO_CAPTURE_MPLANE))
&& !((camera_caps & V4L2_CAP_VIDEO_OUTPUT) || (camera_caps & V4L2_CAP_VIDEO_OUTPUT_MPLANE))) {
if (((camera_caps & V4L2_CAP_VIDEO_CAPTURE)
#ifdef V4L2_CAP_VIDEO_CAPTURE_MPLANE
|| (camera_caps & V4L2_CAP_VIDEO_CAPTURE_MPLANE)
#endif
) && !((camera_caps & V4L2_CAP_VIDEO_OUTPUT)
#ifdef V4L2_CAP_VIDEO_OUTPUT_MPLANE
|| (camera_caps & V4L2_CAP_VIDEO_OUTPUT_MPLANE)
#endif
)) {
MSWebCam *cam=ms_web_cam_new(&v4l2_card_desc);
cam->name=ms_strdup(devname);
ms_web_cam_manager_add_cam(obj,cam);
......
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