File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -317,7 +317,8 @@ - (IplImage*)getOutput;
317
317
capture = [[CaptureDelegate alloc ] init ];
318
318
319
319
AVCaptureDevice *device;
320
- NSArray * devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
320
+ NSArray * devices = [[AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]
321
+ arrayByAddingObjectsFromArray: [AVCaptureDevice devicesWithMediaType: AVMediaTypeMuxed]];
321
322
if ([devices count ] == 0 ) {
322
323
std::cout << " AV Foundation didn't find any attached Video Input Devices!" << std::endl;
323
324
[localpool drain ];
Original file line number Diff line number Diff line change @@ -305,7 +305,8 @@ - (IplImage*)getOutput;
305
305
NSAutoreleasePool *localpool = [[NSAutoreleasePool alloc ] init ];
306
306
307
307
// get capture device
308
- NSArray *devices = [AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo];
308
+ NSArray *devices = [[AVCaptureDevice devicesWithMediaType: AVMediaTypeVideo]
309
+ arrayByAddingObjectsFromArray: [AVCaptureDevice devicesWithMediaType: AVMediaTypeMuxed]];
309
310
310
311
if ( devices.count == 0 ) {
311
312
fprintf (stderr, " OpenCV: AVFoundation didn't find any attached Video Input Devices!\n " );
You can’t perform that action at this time.
0 commit comments