Chromium Code Reviews| Index: media/video/capture/android/video_capture_device_factory_android.cc |
| diff --git a/media/video/capture/android/video_capture_device_factory_android.cc b/media/video/capture/android/video_capture_device_factory_android.cc |
| index 074fb50f426b6251085c029f085f8db901640cee..7c283773e4a510ee999c6950e62bba6dda75fe39 100644 |
| --- a/media/video/capture/android/video_capture_device_factory_android.cc |
| +++ b/media/video/capture/android/video_capture_device_factory_android.cc |
| @@ -116,6 +116,8 @@ void VideoCaptureDeviceFactoryAndroid::GetDeviceSupportedFormats( |
| default: |
| break; |
| } |
| + if (pixel_format == media::PIXEL_FORMAT_UNKNOWN) |
|
tommi (sloooow) - chröme
2015/07/03 08:52:41
could we continue on the default label of the swit
|
| + continue; |
| VideoCaptureFormat capture_format( |
| gfx::Size(media::Java_VideoCaptureFactory_getCaptureFormatWidth(env, |
| format.obj()), |