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