فهرست منبع

#IQRV #comment 活体实体跨平台标注,delete方式不对

80374374 5 ماه پیش
والد
کامیت
1225d4869a
2فایلهای تغییر یافته به همراه3 افزوده شده و 1 حذف شده
  1. 1 0
      Module/mod_livenessdetection/RvcFaceVideo.cpp
  2. 2 1
      Module/mod_livenessdetection/RvcWsServer.cpp

+ 1 - 0
Module/mod_livenessdetection/RvcFaceVideo.cpp

@@ -4,6 +4,7 @@
 #include <assert.h>
 #include <string.h>
 
+//TODO: CrossPlaform  [Gifur@2025630]
 #ifndef rvc_snprintf
 #ifdef _WIN32
 #define rvc_snprintf _snprintf

+ 2 - 1
Module/mod_livenessdetection/RvcWsServer.cpp

@@ -285,6 +285,7 @@ namespace LivenessDetection {
 		m_cameraid = 0;
 		m_fps = RVC_DEFAULT_FPS;
 		if (NULL != m_buffer) {
+			//TODO: 对数组的delete方式不对  [Gifur@2025630]
 			delete m_buffer;
 			m_buffer = NULL;
 		}
@@ -324,7 +325,7 @@ namespace LivenessDetection {
 		m_fps = RVC_DEFAULT_FPS;
 		memcpy(&m_callback, pcallback, sizeof(websocket_callback_t));
 
-#ifdef _MSC_VER
+#ifdef RVC_OS_WIN
 		m_evt = CreateEventA(NULL, FALSE, FALSE, NULL);
 #else
 		sem_init(&m_semt, 0, 0);