|  | @@ -15,11 +15,10 @@ CameraPlayer::CameraPlayer(QObject *parent) : QObject(parent)
 | 
	
		
			
				|  |  |      m_imageQueue.setQueueCapacity(10);
 | 
	
		
			
				|  |  |      m_imageQueue.setDefaultValue(nullptr);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -#if(USING_YUV420 == true)
 | 
	
		
			
				|  |  |      m_player = new PlayerGLWidget();
 | 
	
		
			
				|  |  | -#else
 | 
	
		
			
				|  |  | -    m_player = new PlayerWidget();
 | 
	
		
			
				|  |  | -#endif
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    // m_player = new PlayerWidget();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |      /* 连接信号和槽 */
 | 
	
		
			
				|  |  |      connect(&m_frameTimer, &QTimer::timeout, this, &CameraPlayer::do_updateFrame);
 | 
	
		
			
				|  |  |  }
 | 
	
	
		
			
				|  | @@ -31,6 +30,12 @@ CameraPlayer::~CameraPlayer()
 | 
	
		
			
				|  |  |      NET_DVR_Logout(m_loginID);
 | 
	
		
			
				|  |  |      /* 释放SDK资源,重复清除资源会怎么样 */
 | 
	
		
			
				|  |  |      NET_DVR_Cleanup();
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    if(m_transCode != nullptr)
 | 
	
		
			
				|  |  | +    {
 | 
	
		
			
				|  |  | +        delete m_transCode;
 | 
	
		
			
				|  |  | +        m_transCode == nullptr;
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  |  }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  /* 设置摄像机信息 */
 | 
	
	
		
			
				|  | @@ -386,8 +391,10 @@ void CameraPlayer::DecCallBack(int nPort, char * pBuf, int nSize,FRAME_INFO * pF
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              player->m_frameRate = frameRate;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +        
 | 
	
		
			
				|  |  |          int width = pFrameInfo->nWidth;
 | 
	
		
			
				|  |  |          int height = pFrameInfo->nHeight;
 | 
	
		
			
				|  |  | +        player->m_imageSize = QSize(width, height);
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // LH_WRITE_LOG_DEBUG(QString("视频宽高: %1 x %2, 视频帧率: %3, 当前队列数目: %4").arg(width).arg(height).arg(frameRate).arg(player->m_imageQueue.QueueSize()));
 | 
	
		
			
				|  |  |  
 |