Chromium Code Reviews| 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 f0ce904a0bc61ac8b8b20b3863d4fb10d8d9a76c..af97fd21e03cfeea3b2fdfaa5b5bd52b9ff3b874 100644 |
| --- a/media/video/capture/mac/video_capture_device_factory_mac.mm |
| +++ b/media/video/capture/mac/video_capture_device_factory_mac.mm |
| @@ -118,7 +118,7 @@ void VideoCaptureDeviceFactoryMac::GetDeviceNames( |
| device_transport_type); |
| device_names->push_back(name); |
| for (size_t i = 0; i < arraysize(kBlacklistedCameras); ++i) { |
| - is_any_device_blacklisted = EndsWith(name.id(), |
| + is_any_device_blacklisted |= EndsWith(name.id(), |
|
tommi (sloooow) - chröme
2014/07/17 10:46:57
The loop breaks as soon as is_any_device_blacklist
mcasas
2014/07/17 11:25:13
This flag accumulates over the devices walked in t
|
| kBlacklistedCameras[i].unique_id_signature, false); |
| if (is_any_device_blacklisted) |
| break; |