|  | @@ -29,21 +29,22 @@ using pNET_DVR_SetExceptionCallBack_V30 =  BOOL(*)(UINT reserved1, void* reserve
 | 
	
		
			
				|  |  |  using pPlayM4_GetPort = BOOL(*)(LONG* nPort);
 | 
	
		
			
				|  |  |  using pPlayM4_FreePort = BOOL(*)(LONG nPort);
 | 
	
		
			
				|  |  |  using pPlayM4_Stop = BOOL(*)(LONG nPort);
 | 
	
		
			
				|  |  | -using pPlayM4_OpenStream = BOOL(*)(LONG nPort,PBYTE pFileHeadBuf,DWORD nSize,DWORD nBufPoolSize);
 | 
	
		
			
				|  |  | -using pPlayM4_CloseStream = BOOL(*)(LONG nPort);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -using pPlayM4_Play = BOOL(*)(LONG nPort, HWND hWnd);
 | 
	
		
			
				|  |  | +using pPlayM4_CloseStream = BOOL(*)(LONG nPort);
 | 
	
		
			
				|  |  |  using pPlayM4_PlaySound = BOOL(*)(LONG nPort);
 | 
	
		
			
				|  |  |  using pPlayM4_InputData = BOOL(*)(LONG nPort,PBYTE pBuf,DWORD nSize);
 | 
	
		
			
				|  |  |  using pPlayM4_GetLastError = DWORD(*)(LONG nPort);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  #if defined (Q_OS_WIN)
 | 
	
		
			
				|  |  | +using pPlayM4_Play = BOOL(*)(LONG nPort, HWND hWnd);
 | 
	
		
			
				|  |  | +using pPlayM4_OpenStream = BOOL(*)(LONG nPort,PBYTE pFileHeadBuf,DWORD nSize,DWORD nBufPoolSize);
 | 
	
		
			
				|  |  |  using pPlayM4_SetDecCallBackMend = BOOL(*)(LONG nPort, void (CALLBACK* DecCBFun)(long nPort, char * pBuf, long nSize, FRAME_INFO * pFrameInfo, void* nUser,void* nReserved2), void* nUser);
 | 
	
		
			
				|  |  |  #elif defined (Q_OS_LINUX)
 | 
	
		
			
				|  |  | +using pPlayM4_Play = int(*)(int nPort, PLAYM4_HWND hWnd);
 | 
	
		
			
				|  |  | +using pPlayM4_OpenStream = int(*)(int nPort,unsigned char * pFileHeadBuf,unsigned int nSize,unsigned int nBufPoolSize);
 | 
	
		
			
				|  |  |  using pPlayM4_SetDecCallBackMend = int(*)(int nPort,void (CALLBACK* DecCBFun)(int nPort,char * pBuf,int nSize,FRAME_INFO * pFrameInfo, void* nUser,int nReserved2), void* nUser);
 | 
	
		
			
				|  |  |  #endif
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  /* 网络登录相关的函数指针 */
 | 
	
		
			
				|  |  |  pNet_DEV_Init g_NET_DVR_Init = nullptr;
 | 
	
		
			
				|  |  |  pNET_DVR_Cleanup g_NET_DVR_Cleanup = nullptr;
 | 
	
	
		
			
				|  | @@ -277,16 +278,6 @@ bool PlayM4_Stop(LONG nPort)
 | 
	
		
			
				|  |  |      return g_PlayM4_Stop(nPort);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -bool PlayM4_OpenStream(LONG nPort,PBYTE pFileHeadBuf,DWORD nSize,DWORD nBufPoolSize)
 | 
	
		
			
				|  |  | -{
 | 
	
		
			
				|  |  | -    if(g_PlayM4_OpenStream == nullptr)
 | 
	
		
			
				|  |  | -    {
 | 
	
		
			
				|  |  | -        LH_WRITE_ERROR("PlayM4_OpenStream is nullptr");
 | 
	
		
			
				|  |  | -        return false;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -    return g_PlayM4_OpenStream(nPort, pFileHeadBuf, nSize, nBufPoolSize);
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  bool PlayM4_CloseStream(LONG nPort)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      if(g_PlayM4_CloseStream == nullptr)
 | 
	
	
		
			
				|  | @@ -298,16 +289,6 @@ bool PlayM4_CloseStream(LONG nPort)
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -bool PlayM4_Play(LONG nPort, HWND hWnd)
 | 
	
		
			
				|  |  | -{
 | 
	
		
			
				|  |  | -    if(g_PlayM4_Play == nullptr)
 | 
	
		
			
				|  |  | -    {
 | 
	
		
			
				|  |  | -        LH_WRITE_ERROR("PlayM4_Play is nullptr");
 | 
	
		
			
				|  |  | -        return false;
 | 
	
		
			
				|  |  | -    }
 | 
	
		
			
				|  |  | -    return g_PlayM4_Play(nPort, hWnd);
 | 
	
		
			
				|  |  | -}
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |  bool PlayM4_PlaySound(LONG nPort)
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      if(g_PlayM4_PlaySound == nullptr)
 | 
	
	
		
			
				|  | @@ -338,10 +319,38 @@ DWORD PlayM4_GetLastError(LONG nPort)
 | 
	
		
			
				|  |  |      return g_PlayM4_GetLastError(nPort);
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +#if defined (Q_OS_WIN)
 | 
	
		
			
				|  |  | +bool PlayM4_Play(LONG nPort, HWND hWnd)
 | 
	
		
			
				|  |  | +#elif defined (Q_OS_LINUX)
 | 
	
		
			
				|  |  | +int PlayM4_Play(int nPort, PLAYM4_HWND hWnd)
 | 
	
		
			
				|  |  | +#endif
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    if(g_PlayM4_Play == nullptr)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        LH_WRITE_ERROR("PlayM4_Play is nullptr");
 | 
	
		
			
				|  |  | +        return false;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    return g_PlayM4_Play(nPort, hWnd);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +#if defined (Q_OS_WIN)
 | 
	
		
			
				|  |  | +bool PlayM4_OpenStream(LONG nPort,PBYTE pFileHeadBuf,DWORD nSize,DWORD nBufPoolSize)
 | 
	
		
			
				|  |  | +#elif defined (Q_OS_LINUX)
 | 
	
		
			
				|  |  | +int PlayM4_OpenStream(int nPort,unsigned char * pFileHeadBuf,unsigned int nSize,unsigned int nBufPoolSize)
 | 
	
		
			
				|  |  | +#endif
 | 
	
		
			
				|  |  | +{
 | 
	
		
			
				|  |  | +    if(g_PlayM4_OpenStream == nullptr)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        LH_WRITE_ERROR("PlayM4_OpenStream is nullptr");
 | 
	
		
			
				|  |  | +        return false;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +    return g_PlayM4_OpenStream(nPort, pFileHeadBuf, nSize, nBufPoolSize);
 | 
	
		
			
				|  |  | +}
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  #if defined (Q_OS_WIN)
 | 
	
		
			
				|  |  |  bool PlayM4_SetDecCallBackMend(LONG nPort, void (CALLBACK* DecCBFun)(long nPort, char * pBuf, long nSize, FRAME_INFO * pFrameInfo, void* nUser,void* nReserved2), void* nUser)
 | 
	
		
			
				|  |  |  #elif defined (Q_OS_LINUX)
 | 
	
		
			
				|  |  | -bool PlayM4_SetDecCallBackMend(int nPort, void (CALLBACK* DecCBFun)(int nPort, char * pBuf, int nSize, FRAME_INFO * pFrameInfo, void* nUser, int nReserved2), void* nUser)
 | 
	
		
			
				|  |  | +int PlayM4_SetDecCallBackMend(int nPort, void (CALLBACK* DecCBFun)(int nPort, char * pBuf, int nSize, FRAME_INFO * pFrameInfo, void* nUser, int nReserved2), void* nUser)
 | 
	
		
			
				|  |  |  #endif
 | 
	
		
			
				|  |  |  {
 | 
	
		
			
				|  |  |      if(g_PlayM4_SetDecCallBackMend == nullptr)
 |