diff --git a/src/platform/camera/v4l2.cpp b/src/platform/camera/v4l2.cpp index ea71be432..e9c32a35b 100644 --- a/src/platform/camera/v4l2.cpp +++ b/src/platform/camera/v4l2.cpp @@ -206,7 +206,8 @@ QVector> v4l2::getDeviceList() ioctl(fd, VIDIOC_QUERYCAP, &caps); close(fd); - devices += {file, reinterpret_cast(caps.card)}; + if (caps.device_caps & V4L2_CAP_VIDEO_CAPTURE) + devices += {file, reinterpret_cast(caps.card)}; } return devices; }