diff --git a/src/media/capture/video/linux/video_capture_device_factory_linux.cc b/src/media/capture/video/linux/video_capture_device_factory_linux.cc index 6724957d80aa7..3748d05f9f130 100644 --- a/src/media/capture/video/linux/video_capture_device_factory_linux.cc +++ b/src/media/capture/video/linux/video_capture_device_factory_linux.cc @@ -310,8 +310,25 @@ void VideoCaptureDeviceFactoryLinux::GetSupportedFormatsForV4L2BufferType( } else if (frame_size.type == V4L2_FRMSIZE_TYPE_STEPWISE || frame_size.type == V4L2_FRMSIZE_TYPE_CONTINUOUS) { // TODO(mcasas): see http://crbug.com/249953, support these devices. - NOTIMPLEMENTED_LOG_ONCE(); - continue; +// NOTIMPLEMENTED_LOG_ONCE(); +// continue; + // Kludge so we have some video + static const v4l2_frmsize_discrete sizes[] = { + {1280, 720}, + {640, 360}, + {320, 180} + }; + for (const auto& size : sizes) { + supported_format.frame_size.SetSize(size.width, size.height); + const std::vector frame_rates = GetFrameRateList( + fd, v4l2_format.pixelformat, size.width, size.height); + for (const auto& frame_rate : frame_rates) { + supported_format.frame_rate = frame_rate; + supported_formats->push_back(supported_format); + DVLOG(1) << VideoCaptureFormat::ToString(supported_format); + } + } + break; } const std::vector frame_rates = GetFrameRateList(