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

Unified Diff: media/video/capture/mac/video_capture_device_factory_mac.mm

Issue 398093002: AVFoundation video capture: blacklisting micro fix (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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/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;
« 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