From 438d661832cce9431ec1b56aa13aae61cb896b47 Mon Sep 17 00:00:00 2001
From: chenshijun <csj_sky@126.com>
Date: 星期六, 30 三月 2019 18:36:45 +0800
Subject: [PATCH] C_RealVideoStart失败后再次打开

---
 QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h |   20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diff --git a/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h b/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h
index 162b8fe..f2915cc 100644
--- a/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h
+++ b/QiaoJiaSystem/GB28181DecoderModel/VideoCaptureElementWithRtp.h
@@ -17,7 +17,16 @@
 
     class VideoCaptureElementWithRtp : public basic::PipeElement {
     public:
-        explicit VideoCaptureElementWithRtp(std::string &chanPubID, int fps, int streamTransType, int gpuIdx = -1);
+        /***
+         * VideoCaptureElementWithRtp 瑙嗛瑙g爜
+         * @param chanPubID 閫氶亾鍦�(鎽勫儚鏈篿d)
+         * @param fps
+         * @param streamTransType 璇锋眰鐨勮棰戞祦绫诲瀷
+         * @param gpuIdx gpuindex
+         * @param manager 涓婂眰绫荤殑鎸囬拡
+         */
+        explicit VideoCaptureElementWithRtp(std::string &chanPubID, int fps, int streamTransType, int gpuIdx = -1,
+                                            RtspAnalysManager *manager = nullptr);
 
         virtual ~VideoCaptureElementWithRtp();
 
@@ -27,6 +36,11 @@
          */
         bool getRunning();
 
+
+        /***
+         * 鑾峰彇鍥剧墖
+         * @return
+         */
         cv::Mat getImage();
 
         //淇濆瓨瑙嗛鎺ュ彛,浠嶳tspAnalysManager鍙戣捣璋冪敤
@@ -39,6 +53,7 @@
         std::string MakeDir(const std::string &timeStamp);
 
     private:
+        int reopenTime{10};
         int m_gpuIdx;
         int m_fps;
         int m_streamTransType;
@@ -53,6 +68,7 @@
 
         std::atomic<bool> m_running;
         std::atomic<bool> m_waitSignal;
+        std::atomic<bool> m_waitSignalrunning;
 
         //鐢ㄦ潵淇濆瓨褰曞儚瑙嗛鐨勮矾寰�
         std::string m_cutPath;
@@ -72,7 +88,7 @@
 
 
         /***
-         * rtp缁勫寘鍥炶皟鍑芥暟
+         * GB28181 SDK rtp缁勫寘鍥炶皟鍑芥暟
          * @param handle
          * @param datatype
          * @param frametype

--
Gitblit v1.8.0