From 7e5572c5e1fbcdf52bdbfe7de51b1e1cd6eb442f Mon Sep 17 00:00:00 2001 From: jasongwq Date: Sat, 29 Aug 2020 00:27:13 +0800 Subject: [PATCH] =?UTF-8?q?FIX=EF=BC=9AWhen=2028181=20stream=20stopped?= =?UTF-8?q?=EF=BC=8CStream=20API=20does=20not=20remove=20it?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/src/app/srs_app_gb28181.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/src/app/srs_app_gb28181.cpp b/trunk/src/app/srs_app_gb28181.cpp index ec0b7022b..6414999ae 100644 --- a/trunk/src/app/srs_app_gb28181.cpp +++ b/trunk/src/app/srs_app_gb28181.cpp @@ -1810,7 +1810,7 @@ void SrsGb28181RtmpMuxer::close() h264_pps = ""; aac_specific_config = ""; - if (source_publish && !source){ + if (source_publish && NULL!=source){ source->on_unpublish(); } } @@ -2400,4 +2400,4 @@ srs_error_t SrsGb28181Manger::query_sip_session(std::string id, SrsJsonArray* ar } return sip_service->query_sip_session(id, arr); -} \ No newline at end of file +}