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

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

Issue 366593003: Mac VideoCapture: return empty GetModel() for non-USB non-built-in cameras. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: FakeVCD and FileVCD specify AVFoundation API type. 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 | « media/video/capture/mac/video_capture_device_mac.mm ('k') | media/video/capture/video_capture_device.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/mac/video_capture_device_qtkit_mac.mm
diff --git a/media/video/capture/mac/video_capture_device_qtkit_mac.mm b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
index c884c723df5cb0afa5964551163f9ba8480c523a..599cfac59eefb52ba42012ac42b032ad86071f02 100644
--- a/media/video/capture/mac/video_capture_device_qtkit_mac.mm
+++ b/media/video/capture/mac/video_capture_device_qtkit_mac.mm
@@ -29,9 +29,15 @@
});
for (QTCaptureDevice* device in captureDevices) {
- if (![[device attributeForKey:QTCaptureDeviceSuspendedAttribute] boolValue])
- [deviceNames setObject:[device localizedDisplayName]
- forKey:[device uniqueID]];
+ if ([[device attributeForKey:QTCaptureDeviceSuspendedAttribute] boolValue])
+ continue;
+ DeviceNameAndTransportType* nameAndTransportType =
+ [[[DeviceNameAndTransportType alloc]
+ initWithName:[device localizedDisplayName]
+ transportType:media::kIOAudioDeviceTransportTypeUnknown]
+ autorelease];
+ [deviceNames setObject:nameAndTransportType
+ forKey:[device uniqueID]];
}
}
« no previous file with comments | « media/video/capture/mac/video_capture_device_mac.mm ('k') | media/video/capture/video_capture_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698