Fix std::string to const char *

This commit is contained in:
Isaac Connor 2021-09-08 18:46:58 -04:00
parent ad1db2c960
commit 6b095a17aa
1 changed files with 1 additions and 1 deletions

View File

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