mirror of
https://github.com/opencv/opencv.git
synced 2025-07-24 22:16:27 +08:00
Add AVMediaTypeMuxed capture devices to AVFoundation, just as QTKit does.
This commit is contained in:
parent
dcbed8d676
commit
0aadab0941
@ -305,7 +305,8 @@ int CvCaptureCAM::startCaptureDevice(int cameraNum) {
|
||||
NSAutoreleasePool *localpool = [[NSAutoreleasePool alloc] init];
|
||||
|
||||
// get capture device
|
||||
NSArray *devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
|
||||
NSArray *devices = [[AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]
|
||||
arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]];
|
||||
|
||||
if ( devices.count == 0 ) {
|
||||
fprintf(stderr, "OpenCV: AVFoundation didn't find any attached Video Input Devices!\n");
|
||||
|
Loading…
Reference in New Issue
Block a user