From 15f03476c38951d3fff554b89f46febd4b6f787e Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 24 Feb 2018 10:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E5=86=99=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- c_wrapper/src/common.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/c_wrapper/src/common.cpp b/c_wrapper/src/common.cpp index a90e1369..190a169e 100755 --- a/c_wrapper/src/common.cpp +++ b/c_wrapper/src/common.cpp @@ -44,9 +44,9 @@ using namespace ZL::Rtmp; using namespace ZL::Rtsp; using namespace ZL::Http; -static TcpServer::Ptr s_pRtspSrv; -static TcpServer::Ptr s_pRtmpSrv; -static TcpServer::Ptr s_pHttpSrv; +static TcpServer::Ptr s_pRtspSrv; +static TcpServer::Ptr s_pRtmpSrv; +static TcpServer::Ptr s_pHttpSrv; //////////////////////////environment init/////////////////////////// @@ -80,9 +80,9 @@ API_EXPORT void API_CALL setGlobalOptionString(const char *key,const char *val){ mINI::Instance()[key] = val; } API_EXPORT int API_CALL initHttpServer(unsigned short port){ - s_pHttpSrv.reset(new TcpServer()); + s_pHttpSrv.reset(new TcpServer()); try { - s_pHttpSrv->start(port); + s_pHttpSrv->start(port); return 0; } catch (std::exception &ex) { s_pHttpSrv.reset(); @@ -91,9 +91,9 @@ API_EXPORT int API_CALL initHttpServer(unsigned short port){ } } API_EXPORT int API_CALL initRtspServer(unsigned short port) { - s_pRtspSrv.reset(new TcpServer()); + s_pRtspSrv.reset(new TcpServer()); try { - s_pRtspSrv->start(port); + s_pRtspSrv->start(port); return 0; } catch (std::exception &ex) { s_pRtspSrv.reset(); @@ -103,9 +103,9 @@ API_EXPORT int API_CALL initRtspServer(unsigned short port) { } API_EXPORT int API_CALL initRtmpServer(unsigned short port) { - s_pRtmpSrv.reset(new TcpServer()); + s_pRtmpSrv.reset(new TcpServer()); try { - s_pRtmpSrv->start(port); + s_pRtmpSrv->start(port); return 0; } catch (std::exception &ex) { s_pRtmpSrv.reset();