| Index: media/video/capture/linux/video_capture_device_linux.cc
|
| diff --git a/media/video/capture/linux/video_capture_device_linux.cc b/media/video/capture/linux/video_capture_device_linux.cc
|
| index 60d8f77d55cfe0497fe3835cdfe76f6016ff037a..99eae83582cb3afeab4a67c46676865c19b3a278 100644
|
| --- a/media/video/capture/linux/video_capture_device_linux.cc
|
| +++ b/media/video/capture/linux/video_capture_device_linux.cc
|
| @@ -325,6 +325,7 @@ void VideoCaptureDeviceLinux::V4L2CaptureDelegate::AllocateAndStart(
|
| // Now check if the device is able to accept a capture framerate set.
|
| if (streamparm.parm.capture.capability & V4L2_CAP_TIMEPERFRAME) {
|
| // |frame_rate| is float, approximate by a fraction.
|
| + LOG(ERROR) << " frame_rate = " << frame_rate;
|
| streamparm.parm.capture.timeperframe.numerator =
|
| media::kFrameRatePrecision;
|
| streamparm.parm.capture.timeperframe.denominator = (frame_rate) ?
|
| @@ -339,6 +340,9 @@ void VideoCaptureDeviceLinux::V4L2CaptureDelegate::AllocateAndStart(
|
| DVLOG(2) << "Actual camera driverframerate: "
|
| << streamparm.parm.capture.timeperframe.denominator << "/"
|
| << streamparm.parm.capture.timeperframe.numerator;
|
| + LOG(ERROR) << "Actual camera driverframerate: "
|
| + << streamparm.parm.capture.timeperframe.denominator << "/"
|
| + << streamparm.parm.capture.timeperframe.numerator;
|
| }
|
| }
|
| // TODO(mcasas): what should be done if the camera driver does not allow
|
| @@ -408,6 +412,7 @@ void VideoCaptureDeviceLinux::V4L2CaptureDelegate::SetRotation(int rotation) {
|
| }
|
|
|
| void VideoCaptureDeviceLinux::V4L2CaptureDelegate::DoCapture() {
|
| + DVLOG(3) << __func__;
|
| DCHECK(v4l2_task_runner_->BelongsToCurrentThread());
|
| if (!is_capturing_)
|
| return;
|
|
|