From 66336106cadab94b459e20193138c3d14b8966fe Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Tue, 8 Feb 2022 17:43:26 -0500 Subject: [PATCH] When device isn't specified, pass nullptr. Currently zmc device probing is broken. This fixes it. Not needed for master. --- src/zmu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zmu.cpp b/src/zmu.cpp index 45a38ecb0..e5dd32a59 100644 --- a/src/zmu.cpp +++ b/src/zmu.cpp @@ -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