AI automatically translates all comments in the code into English (#3917)

This commit is contained in:
alex
2024-09-19 14:53:50 +08:00
committed by GitHub
parent 046de691cb
commit 4152dcd409
279 changed files with 10602 additions and 3038 deletions

View File

@@ -52,7 +52,8 @@ static bool loadFile(const char *path, const EventPoller::Ptr &poller) {
while (true) {
if (2 != fread(&len, 1, 2, fp.get())) {
WarnL << "Read rtp size failed";
// 重新播放
// 重新播放 [AUTO-TRANSLATED:9f678d55]
// Replay
fseek(fp.get(), 0, SEEK_SET);
return 1;
}
@@ -98,10 +99,12 @@ static bool loadFile(const char *path, const EventPoller::Ptr &poller) {
#endif // #if defined(ENABLE_RTPPROXY)
int main(int argc, char *argv[]) {
// 设置日志
// 设置日志 [AUTO-TRANSLATED:50ba02ba]
// Set log
Logger::Instance().add(std::make_shared<ConsoleChannel>("ConsoleChannel"));
#if defined(ENABLE_RTPPROXY)
// 启动异步日志线程
// 启动异步日志线程 [AUTO-TRANSLATED:8340d047]
// Start asynchronous log thread
Logger::Instance().setWriter(std::make_shared<AsyncLogWriter>());
loadIniConfig((exeDir() + "config.ini").data());
TcpServer::Ptr rtspSrv(new TcpServer());
@@ -110,7 +113,8 @@ int main(int argc, char *argv[]) {
rtspSrv->start<RtspSession>(554); // 默认554
rtmpSrv->start<RtmpSession>(1935); // 默认1935
httpSrv->start<HttpSession>(80); // 默认80
// 此处选择是否导出调试文件
// 此处选择是否导出调试文件 [AUTO-TRANSLATED:b147c25b]
// Choose whether to export debug file here
// mINI::Instance()[RtpProxy::kDumpDir] = "/Users/xzl/Desktop/";
if (argc == 2) {