-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed how the linux v4l2 file is opened (#66)
open as read only. ioctl does not require files to be open for writting, and capturing a frame should be done read only. This should prevent blocking other processes including the camera produce in cases where the v4l2 device is actually a loopback device. Additionally fixed error handling around file opening to check for negative value prior to casting to unsigned. Co-authored-by: Brian Stark <[email protected]>
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 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