This commit is contained in:
cxh 2025-10-15 15:50:32 +08:00
parent b011f97d47
commit a11ffc5564

View File

@ -107,7 +107,7 @@ RTMPManager::StreamResultInfo RTMPManager::start_camera(const Camera &cam, Strea
ctx_ptr->thread = std::thread([cam, type, ctx_ptr]() { RTMPManager::stream_loop(cam, type, ctx_ptr); }); ctx_ptr->thread = std::thread([cam, type, ctx_ptr]() { RTMPManager::stream_loop(cam, type, ctx_ptr); });
if (fut.wait_for(std::chrono::seconds(5)) == std::future_status::ready) if (fut.wait_for(std::chrono::seconds(10)) == std::future_status::ready)
{ {
res = fut.get(); res = fut.get();
} }