This commit is contained in:
cxh 2025-10-15 08:54:08 +08:00
parent a12d902fc0
commit 17abcd0f78

View File

@ -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)