From 2f22a3d38b43089a4579415d5947ce5f33e31e46 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 30 Aug 2020 12:43:55 +0800 Subject: [PATCH] For #1926, refine code --- trunk/src/app/srs_app_gb28181.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/src/app/srs_app_gb28181.cpp b/trunk/src/app/srs_app_gb28181.cpp index 6414999ae..601385e61 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 && NULL!=source){ + if (source_publish && source){ source->on_unpublish(); } }