Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Unified Diff: media/video/capture/android/video_capture_device_factory_android.cc

Issue 1215443003: [Android] Filter the unknown type in function GetDeviceSupportedFormats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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()),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698