From 641eab08f214327f107ee6e96f9209f24baedabb Mon Sep 17 00:00:00 2001 From: zhangjixing <775834166@qq.com> Date: 星期六, 05 一月 2019 19:23:20 +0800 Subject: [PATCH] 编码使用redis,多路存在问题,先传一版 --- QiaoJiaSystem/VideoAnalysFromHC/main.cpp | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp index 98df593..cfb0eba 100644 --- a/QiaoJiaSystem/VideoAnalysFromHC/main.cpp +++ b/QiaoJiaSystem/VideoAnalysFromHC/main.cpp @@ -9,6 +9,7 @@ #include "DBManageClass.h" #include "RtspAnalysElement.h" #include <basic/debug/Debug.h> +#include "StructureApp/NewEncodeVideoManager.h" //#include "PerimeterAlarmManager.h" //#include "KeepRightManager.h" //"192.168.1.4", 8000, "admin", "basic123" @@ -41,6 +42,8 @@ static void startRtspAnalysElement(LDBTool *_dbTool) { RtspAnalysElement rtspAnalysElement(_dbTool); + NewEncodeVideoManager newEncodeVideoManager; + newEncodeVideoManager.start(); while (1) { sleep(1 * 60 * 60 * 12); } @@ -127,7 +130,8 @@ bool loopRet = true; while (loopRet) { - switch (_dbTool.searchDevTypeFromConfigTable()) { + switch (_dbTool.searchDevTypeFromConfigTable()) { + case 0: { DBG("case 0"); sleep(5); -- Gitblit v1.8.0