From e1cc6fe10f927d2b030c48446906e3292e85da01 Mon Sep 17 00:00:00 2001 From: cxh Date: Thu, 16 Oct 2025 10:54:11 +0800 Subject: [PATCH] 1 --- include/rtmp_manager.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rtmp_manager.hpp b/include/rtmp_manager.hpp index 242f1e8..f9d502b 100644 --- a/include/rtmp_manager.hpp +++ b/include/rtmp_manager.hpp @@ -5,6 +5,7 @@ #include #include +#include #include #include #include @@ -75,7 +76,7 @@ class RTMPManager static std::string make_stream_key(const std::string &cam_name, StreamType type); static GstElement *create_pipeline(const Camera &cam, StreamType type); - static void stream_loop(Camera cam, StreamType type); + static void stream_loop(Camera cam, StreamType type, std::promise *status_promise); static void update_status(const std::string &key, const StreamStatus &status);