Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Handle 2-digit video device index correctly #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

as-jackson
Copy link

When the input for video device is a 2-digit number, the program failed to open the correct video capture device. This commit fixes the issue by properly handling 1-digit and 2-digit device indices using atoi() to convert them to integers, and ensures the video file path is used correctly when the input is not a number.

Tested with both video device indices and file paths to ensure proper functionality.

Testing the ArmSoM-Sige7 device

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant