You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Remove verbose prints from CameraServer on Linux due to being printed every second
This commit is contained in:
@@ -134,17 +134,14 @@ bool CameraLinux::_is_video_capture_device(int p_file_descriptor) {
|
|||||||
struct v4l2_capability capability;
|
struct v4l2_capability capability;
|
||||||
|
|
||||||
if (ioctl(p_file_descriptor, VIDIOC_QUERYCAP, &capability) == -1) {
|
if (ioctl(p_file_descriptor, VIDIOC_QUERYCAP, &capability) == -1) {
|
||||||
print_verbose("Cannot query device");
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(capability.capabilities & V4L2_CAP_VIDEO_CAPTURE)) {
|
if (!(capability.capabilities & V4L2_CAP_VIDEO_CAPTURE)) {
|
||||||
print_verbose(vformat("%s is no video capture device\n", String((char *)capability.card)));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!(capability.capabilities & V4L2_CAP_STREAMING)) {
|
if (!(capability.capabilities & V4L2_CAP_STREAMING)) {
|
||||||
print_verbose(vformat("%s does not support streaming", String((char *)capability.card)));
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user