Commit 0aadab09 authored by ziggy90127's avatar ziggy90127

Add AVMediaTypeMuxed capture devices to AVFoundation, just as QTKit does.

parent dcbed8d6
...@@ -305,7 +305,8 @@ int CvCaptureCAM::startCaptureDevice(int cameraNum) { ...@@ -305,7 +305,8 @@ int CvCaptureCAM::startCaptureDevice(int cameraNum) {
NSAutoreleasePool *localpool = [[NSAutoreleasePool alloc] init]; NSAutoreleasePool *localpool = [[NSAutoreleasePool alloc] init];
// get capture device // get capture device
NSArray *devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]; NSArray *devices = [[AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]
arrayByAddingObjectsFromArray:[AVCaptureDevice devicesWithMediaType:AVMediaTypeMuxed]];
if ( devices.count == 0 ) { if ( devices.count == 0 ) {
fprintf(stderr, "OpenCV: AVFoundation didn't find any attached Video Input Devices!\n"); fprintf(stderr, "OpenCV: AVFoundation didn't find any attached Video Input Devices!\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment