We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa36e76 commit aae7621Copy full SHA for aae7621
modules/highgui/src/cap_avfoundation_mac.mm
@@ -697,12 +697,12 @@ -(int) updateImage {
697
return;
698
}
699
700
- NSArray *tracks = [mAsset tracksWithMediaType:AVMediaTypeAudio];
+ NSArray *tracks = [mAsset tracksWithMediaType:AVMediaTypeVideo];
701
if ([tracks count] == 0) {
702
- fprintf(stderr, "OpenCV: Couldn't read movie file \"%s\"\n", filename);
703
- [localpool drain];
704
- started = 0;
705
- return;
+ fprintf(stderr, "OpenCV: Couldn't read video stream from file \"%s\"\n", filename);
+ [localpool drain];
+ started = 0;
+ return;
706
707
708
mAssetTrack = [tracks[0] retain];
0 commit comments