We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcbed8d commit 0aadab0Copy full SHA for 0aadab0
modules/videoio/src/cap_avfoundation_mac.mm
@@ -305,7 +305,8 @@ - (IplImage*)getOutput;
305
NSAutoreleasePool *localpool = [[NSAutoreleasePool alloc] init];
306
307
// get capture device
308
- NSArray *devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
+ NSArray *devices = [[AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]
309
+ arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]];
310
311
if ( devices.count == 0 ) {
312
fprintf(stderr, "OpenCV: AVFoundation didn't find any attached Video Input Devices!\n");
0 commit comments