When device isn't specified, pass nullptr. Currently zmc device probing is broken. This fixes it. Not needed for master.

This commit is contained in:
Isaac Connor 2022-02-08 17:43:26 -05:00
parent 2396e98fb9
commit 66336106ca
1 changed files with 1 additions and 1 deletions

View File

@ -730,7 +730,7 @@ int main(int argc, char *argv[]) {
if ( function & ZMU_QUERY ) {
#if ZM_HAS_V4L
char vidString[0x10000] = "";
bool ok = LocalCamera::GetCurrentSettings(device.c_str(), vidString, v4lVersion, verbose);
bool ok = LocalCamera::GetCurrentSettings(device.empty()?nullptr:device.c_str(), vidString, v4lVersion, verbose);
printf("%s", vidString);
exit_zmu(ok ? 0 : -1);
#else // ZM_HAS_V4L