From 4e1876fab8bafdecf79106ebfefd1c47d425e34f Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Wed, 18 Dec 2019 14:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0mk=5Frtp=5Fserver=5Fstart?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/common.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/source/common.cpp b/api/source/common.cpp index 0b566645..b0c4b02f 100755 --- a/api/source/common.cpp +++ b/api/source/common.cpp @@ -140,10 +140,12 @@ API_EXPORT uint16_t API_CALL mk_rtp_server_start(uint16_t port){ #ifdef ENABLE_RTPPROXY try { //创建rtp tcp服务器 + tcpRtpServer = std::make_shared(); tcpRtpServer->start(port); + + //创建rtp udp服务器 auto ret = tcpRtpServer->getPort(); udpRtpServer = std::make_shared(); - //创建rtp udp服务器 udpRtpServer->initSock(port); return ret; } catch (std::exception &ex) {