From 25928e3093a7c0257128192d7785ec3f74e89e81 Mon Sep 17 00:00:00 2001
From: pans <pansen626@sina.com>
Date: 星期六, 30 三月 2019 12:46:20 +0800
Subject: [PATCH] 添加注释

---
 QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp b/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp
index 9eee39c..ce56ad8 100644
--- a/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp
+++ b/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp
@@ -9,7 +9,7 @@
 using std::string;
 
 RtspAnalysManager::RtspAnalysManager(LDBTool *_dbTool) : m_lDBTool(nullptr), m_maxCount(50), m_currentCount(0) {
-    INFO("MYH DEBUG HERE");
+//    INFO("MYH DEBUG HERE");
     m_lDBTool = new LDBTool;
     init();
 
@@ -39,7 +39,7 @@
 
 //鍒濆鍖栧嚱鏁�
 void RtspAnalysManager::init() {
-    INFO("MYH DEBUG HERE")
+//    INFO("MYH DEBUG HERE")
 
     m_GB28181_Enable = appPref.getIntData("GB28181_Enable");
     //#todo GB28181
@@ -58,9 +58,10 @@
 //                                                 item.str_password.toStdString(), item.str_brand.toStdString());
                 INFO("cam add is " << item.str_addr.toStdString());
                 addCamera(t_camIdex, rtsp_url);
+                sleep(1);
             }
         } else {
-            ERR("searchCamDevTableAll size is 0");
+            ERR("searchCamDevTableByType size is 0");
         }
 
     } else {
@@ -115,7 +116,7 @@
 //
 //        }
         } else {
-            ERR("searchCamDevTableAll size is 0");
+            ERR("searchCamDevTableByType size is 0");
         }
     }
 }
@@ -152,7 +153,7 @@
 
         //#todo end
         if (m_controllers_videoCapElem.find(index) == m_controllers_videoCapElem.end()) {
-            INFO("MYH DEBUG HERE");
+//            INFO("MYH DEBUG HERE");
             if (m_currentCount >= m_maxCount) {
                 ERR("addCamera faild, camera's num is full!")
                 return -1;
@@ -254,7 +255,7 @@
  * @return
  */
 int RtspAnalysManager::removeAll() {
-    INFO("MYH DEBUG HERE");
+//    INFO("MYH DEBUG HERE");
 
     if (m_GB28181_Enable) {
         for (auto controller: m_controllers_videoCapElem) {
@@ -275,7 +276,7 @@
         }
         m_controllers.clear();
     }
-    INFO("MYH DEBUG HERE");
+//    INFO("MYH DEBUG HERE");
 
     m_imgRedisCRwLock.wrlock();
     for (auto controller: m_imgRedisControllers) {
@@ -290,7 +291,7 @@
 
 
     m_currentCount = 0;
-    INFO("MYH DEBUG HERE");
+//    INFO("MYH DEBUG HERE");
     return 0;
 }
 
@@ -344,7 +345,7 @@
         ERR("Save Failed Cam: " << camId << " ImageKey: " << imageName);
     }
 //    m_imgRedisCRwLock.unlock();
-    INFO("MYH DEBUG HERE");
+//    INFO("MYH DEBUG HERE");
     return true;
 }
 

--
Gitblit v1.8.0