From 58f991fe2b2f539548cdff2d8b5c82ea28ff157d Mon Sep 17 00:00:00 2001 From: cxh Date: Mon, 8 Sep 2025 15:20:16 +0800 Subject: [PATCH] first commit --- src/rtsp_manager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/rtsp_manager.cpp b/src/rtsp_manager.cpp index 5e002da..ba86ed0 100644 --- a/src/rtsp_manager.cpp +++ b/src/rtsp_manager.cpp @@ -58,6 +58,11 @@ void RTSPManager::start(const std::vector &cameras) void RTSPManager::stop() { + if (loop) + { + g_main_loop_quit(loop); // 退出 GMainLoop + } + if (server) { g_object_unref(server); @@ -68,5 +73,6 @@ void RTSPManager::stop() g_main_loop_unref(loop); loop = nullptr; } + LOG_INFO("[RTSP] Server stopped."); }