We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
the method videoInput::getDeviceIDFromName(char * name) is implemented incorrectly. It is comparing two pointers (char*) instead of strings.
videoInput::getDeviceIDFromName(char * name)
Is order to solve this, simply use the c function strcmp(char*,char*) like so:
strcmp(char*,char*)
int videoInput::getDeviceIDFromName(char * name) { if (listDevices(true) == 0) return -1; int deviceID = -1; for (int i = 0; i < VI_MAX_CAMERAS; i++) { if (strcmp(deviceNames[i], name) == 0) { deviceID = i; break; } } return deviceID; }
The text was updated successfully, but these errors were encountered:
This issue is a clone of #20.
Sorry, something went wrong.
Sure thing, I'll hit you up with a PR =)
No branches or pull requests
the method
videoInput::getDeviceIDFromName(char * name)
is implemented incorrectly. It is comparing two pointers (char*) instead of strings.Is order to solve this, simply use the c function
strcmp(char*,char*)
like so:The text was updated successfully, but these errors were encountered: