| 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 7b99c204cb17d7e39bfee777f058e2d6c56139f4..4c3420ab9e33155551a69bbe8e525d98ba3f92de 100644
|
| --- a/media/video/capture/linux/video_capture_device_linux.cc
|
| +++ b/media/video/capture/linux/video_capture_device_linux.cc
|
| @@ -50,18 +50,18 @@ static const int32 kV4l2Fmts[] = {
|
| V4L2_PIX_FMT_YUYV
|
| };
|
|
|
| -static VideoCaptureDevice::Format V4l2ColorToVideoCaptureColorFormat(
|
| +static VideoCaptureCapability::Format V4l2ColorToVideoCaptureColorFormat(
|
| int32 v4l2_fourcc) {
|
| - VideoCaptureDevice::Format result = VideoCaptureDevice::kColorUnknown;
|
| + VideoCaptureCapability::Format result = VideoCaptureCapability::kColorUnknown;
|
| switch (v4l2_fourcc) {
|
| case V4L2_PIX_FMT_YUV420:
|
| - result = VideoCaptureDevice::kI420;
|
| + result = VideoCaptureCapability::kI420;
|
| break;
|
| case V4L2_PIX_FMT_YUYV:
|
| - result = VideoCaptureDevice::kYUY2;
|
| + result = VideoCaptureCapability::kYUY2;
|
| break;
|
| }
|
| - DCHECK_NE(result, VideoCaptureDevice::kColorUnknown);
|
| + DCHECK_NE(result, VideoCaptureCapability::kColorUnknown);
|
| return result;
|
| }
|
|
|
| @@ -248,12 +248,14 @@ void VideoCaptureDeviceLinux::OnAllocate(int width,
|
| }
|
|
|
| // Store our current width and height.
|
| - Capability current_settings;
|
| + VideoCaptureCapability current_settings;
|
| current_settings.color = V4l2ColorToVideoCaptureColorFormat(
|
| video_fmt.fmt.pix.pixelformat);
|
| current_settings.width = video_fmt.fmt.pix.width;
|
| current_settings.height = video_fmt.fmt.pix.height;
|
| current_settings.frame_rate = frame_rate;
|
| + current_settings.expected_capture_delay = 0;
|
| + current_settings.interlaced = false;
|
|
|
| state_ = kAllocated;
|
| // Report the resulting frame size to the observer.
|
|
|