优化拍照处理

serial
Matthew 1 year ago
parent 5ce977e846
commit 0739f50a6e

@ -347,9 +347,9 @@ Java_com_xypower_mpapp_MicroPhotoService_notifyToTakePhoto(
}
unsigned char type = photoOrVideo ? 0 : 1;
std::thread th(&Runner::RequestCapture, pTerminal, (unsigned int)channel, (unsigned int)preset, type, (unsigned long)scheduleTime);
th.detach();
// pTerminal->RequestCapture((unsigned int)channel, (unsigned int)preset, 0, (unsigned long)scheduleTime);
// std::thread th(&Runner::RequestCapture, pTerminal, (unsigned int)channel, (unsigned int)preset, type, (unsigned long)scheduleTime, 0, true);
// th.detach();
pTerminal->RequestCapture((unsigned int)channel, (unsigned int)preset, type, (unsigned long)scheduleTime, 0, true);
return JNI_TRUE;
}

Loading…
Cancel
Save