Index: media/video/capture/mac/video_capture_device_factory_mac.mm |
diff --git a/media/video/capture/mac/video_capture_device_factory_mac.mm b/media/video/capture/mac/video_capture_device_factory_mac.mm |
index 1fbf8efee5f05b5f32bc2ccdfcb0a799c17ec1b0..443b7f3838eda3587622f9d29a8c72aa64dcb3be 100644 |
--- a/media/video/capture/mac/video_capture_device_factory_mac.mm |
+++ b/media/video/capture/mac/video_capture_device_factory_mac.mm |
@@ -35,8 +35,10 @@ static bool IsDeviceBlacklisted(const VideoCaptureDevice::Name& name) { |
bool is_device_blacklisted = false; |
for(size_t i = 0; |
!is_device_blacklisted && i < arraysize(kBlacklistedCameras); ++i) { |
- is_device_blacklisted = base::EndsWith(name.id(), |
- kBlacklistedCameras[i].unique_id_signature, false); |
+ is_device_blacklisted = |
+ base::EndsWith(name.id(), |
+ kBlacklistedCameras[i].unique_id_signature, |
+ base::CompareCase::INSENSITIVE_ASCII); |
} |
DVLOG_IF(2, is_device_blacklisted) << "Blacklisted camera: " << |
name.name() << ", id: " << name.id(); |
@@ -184,7 +186,7 @@ void VideoCaptureDeviceFactoryMac::GetDeviceSupportedFormats( |
for (size_t i = 0; i < arraysize(kBlacklistedCameras); ++i) { |
if (base::EndsWith(device.id(), |
kBlacklistedCameras[i].unique_id_signature, |
- false)) { |
+ base::CompareCase::INSENSITIVE_ASCII)) { |
supported_formats->push_back(media::VideoCaptureFormat( |
gfx::Size(kBlacklistedCameras[i].capture_width, |
kBlacklistedCameras[i].capture_height), |