Skip to content

Commit 0aadab0

Browse files
committed
Add AVMediaTypeMuxed capture devices to AVFoundation, just as QTKit does.
1 parent dcbed8d commit 0aadab0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/videoio/src/cap_avfoundation_mac.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,8 @@ - (IplImage*)getOutput;
305305
NSAutoreleasePool *localpool = [[NSAutoreleasePool alloc] init];
306306

307307
// get capture device
308-
NSArray *devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
308+
NSArray *devices = [[AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]
309+
arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]];
309310

310311
if ( devices.count == 0 ) {
311312
fprintf(stderr, "OpenCV: AVFoundation didn't find any attached Video Input Devices!\n");

0 commit comments

Comments
 (0)