[opencv] 38/53: highgui(macos): fix video file reading via AVFoundation
Nobuhiro Iwamatsu
iwamatsu at moszumanska.debian.org
Sun Aug 27 23:27:06 UTC 2017
This is an automated email from the git hooks/post-receive script.
iwamatsu pushed a commit to annotated tag 2.4.13.3
in repository opencv.
commit aae7621243d161d50e1c579925855a30b35bc8be
Author: Alexander Alekhin <alexander.alekhin at intel.com>
Date: Sat Jun 24 11:01:33 2017 +0300
highgui(macos): fix video file reading via AVFoundation
---
modules/highgui/src/cap_avfoundation_mac.mm | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/modules/highgui/src/cap_avfoundation_mac.mm b/modules/highgui/src/cap_avfoundation_mac.mm
index c56795d..fbc4845 100644
--- a/modules/highgui/src/cap_avfoundation_mac.mm
+++ b/modules/highgui/src/cap_avfoundation_mac.mm
@@ -697,12 +697,12 @@ CvCaptureFile::CvCaptureFile(const char* filename) {
return;
}
- NSArray *tracks = [mAsset tracksWithMediaType:AVMediaTypeAudio];
+ NSArray *tracks = [mAsset tracksWithMediaType:AVMediaTypeVideo];
if ([tracks count] == 0) {
- fprintf(stderr, "OpenCV: Couldn't read movie file \"%s\"\n", filename);
- [localpool drain];
- started = 0;
- return;
+ fprintf(stderr, "OpenCV: Couldn't read video stream from file \"%s\"\n", filename);
+ [localpool drain];
+ started = 0;
+ return;
}
mAssetTrack = [tracks[0] retain];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/opencv.git
More information about the debian-science-commits
mailing list