-
Notifications
You must be signed in to change notification settings - Fork 872
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Return the right type and error when opening VideoCapture fails
When opening a video capture OpenCV signals an error when open() fails, however we are ignoring this error and not setting it when returning from Go bindings functions. Furthermore open() function returns bool. We are returning the open() error as integeer, which is ok in C/C++ world as it's implicitly cast into particular bool value - we want to make this explicit in GoCV so we are returning bool now as per OpenCV.
- Loading branch information
1 parent
ee0f33d
commit 218c4ae
Showing
4 changed files
with
25 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters