Skip to content

Commit d69b3e3

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

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/videoio/src/cap_avfoundation.mm

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,8 @@ - (IplImage*)getOutput;
317317
capture = [[CaptureDelegate alloc] init];
318318

319319
AVCaptureDevice *device;
320-
NSArray* devices = [AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo];
320+
NSArray* devices = [[AVCaptureDevice devicesWithMediaType:AVMediaTypeVideo]
321+
arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]];
321322
if ([devices count] == 0) {
322323
std::cout << "AV Foundation didn't find any attached Video Input Devices!" << std::endl;
323324
[localpool drain];

0 commit comments

Comments
 (0)