From 69895028b74737228e76005f88b9aaf95136ec96 Mon Sep 17 00:00:00 2001 From: chenshijun <csj_sky@126.com> Date: 星期一, 29 七月 2019 11:49:08 +0800 Subject: [PATCH] 析构时,deleteCamera增加handle置位的操作,防止重复关闭报错 --- csrc/thirdparty/gb28181/include/PsToEs.hpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/csrc/thirdparty/gb28181/include/PsToEs.hpp b/csrc/thirdparty/gb28181/include/PsToEs.hpp index 51f613a..a46f516 100644 --- a/csrc/thirdparty/gb28181/include/PsToEs.hpp +++ b/csrc/thirdparty/gb28181/include/PsToEs.hpp @@ -184,10 +184,11 @@ void deleteCamera(){ printf("RTSPSTREAM_Close\n"); RTSPSTREAM_Close(handle); + handle = -1; } private: MyQueue<frameBuffInfo *> m_rtpQueue; - long handle; + long handle = -1; }; -- Gitblit v1.8.0