From 5f0bbb3f1767342baa179703fbbc14e67e1417a0 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 18 Dec 2019 14:56:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/common.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/source/common.cpp b/api/source/common.cpp index b0c4b02f..36446d49 100755 --- a/api/source/common.cpp +++ b/api/source/common.cpp @@ -88,7 +88,7 @@ API_EXPORT void API_CALL mk_set_option(const char *key, const char *val) { API_EXPORT uint16_t API_CALL mk_http_server_start(uint16_t port, int ssl) { ssl = MAX(0,MIN(ssl,1)); try { - http_server[ssl].reset(new TcpServer()); + http_server[ssl] = std::make_shared(); if(ssl){ http_server[ssl]->start >(port); } else{ @@ -105,7 +105,7 @@ API_EXPORT uint16_t API_CALL mk_http_server_start(uint16_t port, int ssl) { API_EXPORT uint16_t API_CALL mk_rtsp_server_start(uint16_t port, int ssl) { ssl = MAX(0,MIN(ssl,1)); try { - rtsp_server[ssl].reset(new TcpServer()); + rtsp_server[ssl] = std::make_shared(); if(ssl){ rtsp_server[ssl]->start >(port); }else{ @@ -122,7 +122,7 @@ API_EXPORT uint16_t API_CALL mk_rtsp_server_start(uint16_t port, int ssl) { API_EXPORT uint16_t API_CALL mk_rtmp_server_start(uint16_t port, int ssl) { ssl = MAX(0,MIN(ssl,1)); try { - rtmp_server[ssl].reset(new TcpServer()); + rtmp_server[ssl] = std::make_shared(); if(ssl){ rtmp_server[ssl]->start >(port); }else{