Commit 099023fe authored by Christian Fremerey's avatar Christian Fremerey Committed by Commit Bot

[Video Capture, Linux] Change log level from ERROR to INFO

Change log level for logs that appear to be normal/expected behavior for
certain webcams in order to reduce log spam.

Bug: 743093
Change-Id: I4c0b4c05a84a9d17a9777b1310a1a741f729daf4
Reviewed-on: https://chromium-review.googlesource.com/1188435Reviewed-by: default avatarEmircan Uysaler <emircan@chromium.org>
Commit-Queue: Christian Fremerey <chfremer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#585898}
parent 28fbf7ee
......@@ -718,7 +718,7 @@ void V4L2CaptureDelegate::ResetUserAndCameraControlsToDefault(int device_fd) {
ext_controls.controls = special_camera_controls.data();
if (HANDLE_EINTR(v4l2_->ioctl(device_fd, VIDIOC_S_EXT_CTRLS, &ext_controls)) <
0)
DPLOG(ERROR) << "VIDIOC_S_EXT_CTRLS";
DPLOG(INFO) << "VIDIOC_S_EXT_CTRLS";
std::vector<struct v4l2_ext_control> camera_controls;
for (const auto& control : kControls) {
......@@ -750,7 +750,7 @@ void V4L2CaptureDelegate::ResetUserAndCameraControlsToDefault(int device_fd) {
ext_controls.controls = camera_controls.data();
if (HANDLE_EINTR(
v4l2_->ioctl(device_fd, VIDIOC_S_EXT_CTRLS, &ext_controls)) < 0)
DPLOG(ERROR) << "VIDIOC_S_EXT_CTRLS";
DPLOG(INFO) << "VIDIOC_S_EXT_CTRLS";
}
}
......@@ -786,7 +786,7 @@ void V4L2CaptureDelegate::ResetUserAndCameraControlsToDefault(int device_fd) {
ext_controls.controls = special_camera_controls.data();
if (HANDLE_EINTR(v4l2_->ioctl(device_fd, VIDIOC_S_EXT_CTRLS, &ext_controls)) <
0)
DPLOG(ERROR) << "VIDIOC_S_EXT_CTRLS";
DPLOG(INFO) << "VIDIOC_S_EXT_CTRLS";
}
bool V4L2CaptureDelegate::MapAndQueueBuffer(int index) {
......
......@@ -267,7 +267,7 @@ bool VideoCaptureDeviceFactoryLinux::HasUsableFormats(int fd,
}
}
DLOG(ERROR) << "No usable formats found";
DVLOG(1) << "No usable formats found";
return false;
}
......
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