From b8c5eb8048b566d632b25391a79ccbd6ce33c010 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期六, 30 三月 2019 16:10:01 +0800
Subject: [PATCH] 1.3 增加nsq消息,解决进程重启

---
 QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp b/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp
index 06191c5..2bf9968 100644
--- a/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp
+++ b/QiaoJiaSystem/VideoToImageMulth/pushStream/PushStreamAppPipeController.cpp
@@ -13,12 +13,12 @@
     videoPublishElement(nullptr) {
 
     string path = appConfig.getStringProperty("srsAddr") + "cam" + chanPubID + ".flv";
-    cv::Size size_(appPref.getIntData("pulish.width"), appPref.getIntData("pulish.height"));
+    cv::Size size_(appConfig.getIntProperty("pulish.width"), appConfig.getIntProperty("pulish.height"));
     int gupIdx = appPref.getIntData("gpu.index");
     videoPublishElement = new ffmpeg::VideoPublishElement(path, size_, "flv", 25, gupIdx);
-    if (appPref.getIntData("pulish.width") < 0 || appPref.getIntData("pulish.height") < 0) {
-        ERR("pulish.width:  " << appPref.getIntData("pulish.width") << "  Height: "
-                              << appPref.getIntData("pulish.height"));
+    if (appConfig.getIntProperty("pulish.width") < 0 || appConfig.getIntProperty("pulish.height") < 0) {
+        ERR("pulish.width:  " << appConfig.getIntProperty("pulish.width") << "  Height: "
+                              << appConfig.getIntProperty("pulish.height"));
     }
     videoCaptureElement.registerConnector([&] {
         //if(!videoPublishElement.isBusy()){

--
Gitblit v1.8.0