From 17abcd0f781ae422eef38079f56e53b54d9b6c2a Mon Sep 17 00:00:00 2001 From: cxh Date: Wed, 15 Oct 2025 08:54:08 +0800 Subject: [PATCH] temp --- src/rtmp_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rtmp_manager.cpp b/src/rtmp_manager.cpp index 816f2a1..27fdf36 100644 --- a/src/rtmp_manager.cpp +++ b/src/rtmp_manager.cpp @@ -196,7 +196,7 @@ void RTMPManager::start_camera(const Camera &cam, StreamType type) ctx.running = true; ctx.thread = std::thread([cam, type]() { stream_loop(cam, type); }); - streams[key] = std::move(ctx); + streams.emplace(key, std::move(ctx)); } void RTMPManager::stop_camera(const std::string &cam_name, StreamType type)