| Index: content/browser/renderer_host/media/video_capture_manager.cc
|
| diff --git a/content/browser/renderer_host/media/video_capture_manager.cc b/content/browser/renderer_host/media/video_capture_manager.cc
|
| index b4e9a5c6362f099852b6a5cf9d04f058bc7d3f01..8b78aebd0b22042097daf5f626db139027ee7479 100644
|
| --- a/content/browser/renderer_host/media/video_capture_manager.cc
|
| +++ b/content/browser/renderer_host/media/video_capture_manager.cc
|
| @@ -87,7 +87,11 @@ void ConsolidateCaptureFormats(media::VideoCaptureFormats* formats) {
|
| // anyhow: the actual pixel format is decided at the device level.
|
| for (media::VideoCaptureFormats::iterator it = formats->begin();
|
| it != formats->end(); ++it) {
|
| - it->pixel_format = media::PIXEL_FORMAT_I420;
|
| + // TODO(astojilj) Force I420 for all except D16 in all
|
| + // video_capture_device_factory_->GetDeviceSupportedFormats instead of
|
| + // doing it here?
|
| + if (it->pixel_format != media::PIXEL_FORMAT_Y16)
|
| + it->pixel_format = media::PIXEL_FORMAT_I420;
|
| }
|
| }
|
|
|
|
|