Sfoglia il codice sorgente

V0.8.1
1、修复了对Linux的兼容性问题

Apple 1 mese fa
parent
commit
f8513e11bd
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 1 1
      CPlayer/HKSDKAPI/hksdkdefine.h
  2. 1 1
      CPlayer/cameraplayer.h

+ 1 - 1
CPlayer/HKSDKAPI/hksdkdefine.h

@@ -414,7 +414,7 @@ using DecodeCB = void (CALLBACK*)(long nPort, char * pBuf, long nSize, FRAME_INF
 #elif defined (C_WIN64)
 using DecodeCB = void (CALLBACK*)(long nPort, char * pBuf, long nSize, FRAME_INFO * pFrameInfo, void* nUser,void* nReserved2);
 #elif defined (C_LINUX)
-using DecodeCB = void (CALLBACK* DecCBFun)(int nPort, char * pBuf, int nSize, FRAME_INFO * pFrameInfo, void* nUser, int nReserved2);
+using DecodeCB = void (CALLBACK*)(int nPort, char * pBuf, int nSize, FRAME_INFO * pFrameInfo, void* nUser, int nReserved2);
 #endif
 
 

+ 1 - 1
CPlayer/cameraplayer.h

@@ -78,7 +78,7 @@ private:
 #elif defined (C_WIN64)
     static void CALLBACK DecCallBack(long nPort, char * pBuf, long nSize,FRAME_INFO * pFrameInfo, void* nUser, void* nReserved2);
 #elif defined(C_LINUX)
-    static void DecCallBack(int nPort, char * pBuf, int nSize,FRAME_INFO * pFrameInfo, void* nUser, int nReserved2);
+    static void CALLBACK DecCallBack(int nPort, char * pBuf, int nSize,FRAME_INFO * pFrameInfo, void* nUser, int nReserved2);
 #endif
 
 private: