From f1360ea0672147638e052b3ea1458b393c92422e Mon Sep 17 00:00:00 2001 From: chenshijun <chenshijun@aiotlink.com> Date: 星期五, 15 三月 2019 15:14:35 +0800 Subject: [PATCH] Merge branch 'yw.1.2.fixbug' of ssh://192.168.1.226:29418/development/c++ into yw.1.2.fixbug --- QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp b/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp index 1959a8a..cbc7dfa 100644 --- a/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp +++ b/QiaoJiaSystem/VideoToImageMulth/RtspAnalysManager.cpp @@ -61,20 +61,20 @@ sleep(1); } } else { - ERR("searchCamDevTableAll size is 0"); + ERR("searchCamDevTableByType size is 0"); } } else { - auto lst = m_lDBTool->searchCamDevTableAll(); + auto lst = m_lDBTool->searchCamDevTableByType(0); Record_Config lst_dev = m_lDBTool->searchConfigTableWithinServerInfo(); //璁剧疆瑙嗛鐨勬渶闀垮拰鏈�鐭椂闂撮棿闅� appPref.setIntData("n_cut_max_duration", lst_dev.n_cut_max_duration); appPref.setIntData("n_cut_min_duration", lst_dev.n_cut_min_duration); if (lst.size() > 0) { - int startCamNO = appPref.getIntData("CamStart") * appPref.getIntData("CamStep"); - int CamCount = appPref.getIntData("CamStep"); - INFO("StartCamNO: " << startCamNO << " CamStep: " << CamCount); + int startCamNO = appPref.getIntData("CamStartNO"); + int CamCount = appPref.getIntData("CamEndNO") - appPref.getIntData("CamStartNO") + 1; + INFO("StartCamNO: " << startCamNO << " CamCount: " << CamCount); auto itor = lst.begin(); if (startCamNO >= lst.size()) { @@ -116,7 +116,7 @@ // // } } else { - ERR("searchCamDevTableAll size is 0"); + ERR("searchCamDevTableByType size is 0"); } } } -- Gitblit v1.8.0