From 3363f39eba3e5f26dd8a86f8a4d5ff219c5079a6 Mon Sep 17 00:00:00 2001 From: winlin Date: Mon, 31 Aug 2020 13:37:22 +0800 Subject: [PATCH] Fix GB28181 build fail --- trunk/src/app/srs_app_gb28181_sip.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/trunk/src/app/srs_app_gb28181_sip.cpp b/trunk/src/app/srs_app_gb28181_sip.cpp index 7137f8117..45d8f493b 100644 --- a/trunk/src/app/srs_app_gb28181_sip.cpp +++ b/trunk/src/app/srs_app_gb28181_sip.cpp @@ -783,8 +783,6 @@ srs_error_t SrsGb28181SipService::send_sip_raw_data(SrsSipRequest *req, std::st srs_error_t SrsGb28181SipService::send_query_catalog(SrsSipRequest *req) { - srs_error_t err = srs_success; - srs_assert(req); SrsGb28181SipSession *sip_session = fetch(req->sip_auth_id); @@ -919,7 +917,7 @@ srs_error_t SrsGb28181SipService::fetch_or_create_sip_session(SrsSipRequest *req if ((sess = fetch(req->sip_auth_id)) != NULL) { *sip_session = sess; return err; - } + } sess = new SrsGb28181SipSession(this, req);; if ((err = sess->serve()) != srs_success) {