|
@@ -456,11 +456,12 @@ namespace LivenessDetection {
|
|
|
}
|
|
|
}
|
|
|
else if (0 == msg->get_payload().compare(m_struuid.length() + strlen(RVC_WS_CONNECT_IDENTIFIER), strlen(RVC_WS_STOP_TRANS_STR), RVC_WS_STOP_TRANS_STR)) {
|
|
|
+ long costtime = SP::Module::Comm::RVCGetTickCount() - m_lstarttime;
|
|
|
if (0 != StopVideoTransmit()) {
|
|
|
- DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setLogCode("QLR0402314L5").setResultCode("RTA3E02")("stop video transmit failed.");
|
|
|
+ DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_USER).setCostTime(costtime).setLogCode("QLR0402314L5").setResultCode("RTA3E02")("stop video transmit failed.");
|
|
|
}
|
|
|
else {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setCostTime(SP::Module::Comm::RVCGetTickCount() - m_lstarttime).setLogCode("QLR0402314L5")("stop video transmit success.");
|
|
|
+ DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_USER).setCostTime(costtime).setLogCode("QLR0402314L5")("stop video transmit success.");
|
|
|
}
|
|
|
m_bstarttrans = false;
|
|
|
}
|
|
@@ -549,9 +550,9 @@ namespace LivenessDetection {
|
|
|
LogWarn(Severity_Low, Error_Debug, LOG_EVT_AUTO_FACE_TIMEOUT, CSimpleStringA::Format("auto face timeout and transmit time is %us.", utranstime).GetData());
|
|
|
DbgWithLink(LOG_LEVEL_WARN, LOG_TYPE_SYSTEM).setResultCode("RTA3E05")("流媒体传输时长不小于15秒.");
|
|
|
}
|
|
|
-
|
|
|
- iRet = 0;
|
|
|
}
|
|
|
+
|
|
|
+ iRet = 0;
|
|
|
|
|
|
return iRet;
|
|
|
}
|