From 5a10db5f1bbe9abd276f5424871dba966af5653e Mon Sep 17 00:00:00 2001 From: Say_Bryan <66416706+Aklion666@users.noreply.github.com> Date: Sat, 2 Aug 2025 20:32:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9RtpServer.cpp=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E6=B3=A8=E9=87=8A=E9=94=99=E8=AF=AF=20(#4372)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Rtp/RtpServer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Rtp/RtpServer.cpp b/src/Rtp/RtpServer.cpp index 70656fdf..8aaaf494 100644 --- a/src/Rtp/RtpServer.cpp +++ b/src/Rtp/RtpServer.cpp @@ -207,8 +207,8 @@ void RtpServer::start(uint16_t local_port, const char *local_ip, const MediaTupl TcpServer::Ptr tcp_server; if (tcp_mode == PASSIVE || tcp_mode == ACTIVE) { auto processor = helper ? helper->getProcess() : nullptr; - // 如果共享同一个processor对象,那么tcp server深圳为单线程模式确保线程安全 [AUTO-TRANSLATED:68bdd877] - // If the same processor object is shared, then the TCP server Shenzhen is in single-threaded mode to ensure thread safety + // 如果共享同一个processor对象,那么tcp server声明为单线程模式确保线程安全 [AUTO-TRANSLATED:68bdd877] + // If the same processor object is shared, declare the TCP server in single-threaded mode to ensure thread safety. tcp_server = std::make_shared(processor ? poller : nullptr); (*tcp_server)[RtpSession::kVhost] = tuple.vhost; (*tcp_server)[RtpSession::kApp] = tuple.app;