diff --git a/src/Record/HlsMakerSub.cpp b/src/Record/HlsMakerSub.cpp index 7ebf99b6..361aeb33 100644 --- a/src/Record/HlsMakerSub.cpp +++ b/src/Record/HlsMakerSub.cpp @@ -30,7 +30,7 @@ HlsMakerSub::HlsMakerSub(float seg_duration, uint32_t seg_number, bool seg_keep) _seg_duration = seg_duration; _seg_keep = seg_keep; _is_record = false; - _poller = EventPollerPool::Instance().getPoller(); + //_poller = EventPollerPool::Instance().getPoller(); } HlsMakerSub::~HlsMakerSub() { @@ -53,10 +53,11 @@ void HlsMakerSub::startRecord(bool isRecord) { count ++; if (count < delete_file_paths.size()) { auto ts_path = it.second; - _poller->doDelayTask(30 * 1000, [ts_path]() { - File::delete_file(ts_path.data()); - return 0; - }); + File::delete_file(ts_path.data()); + //_poller->doDelayTask(30 * 1000, [ts_path]() { + // File::delete_file(ts_path.data()); + // return 0; + //}); } } } diff --git a/src/Record/HlsMakerSub.h b/src/Record/HlsMakerSub.h index 3904c358..622f1b5b 100644 --- a/src/Record/HlsMakerSub.h +++ b/src/Record/HlsMakerSub.h @@ -131,7 +131,7 @@ private: bool _is_record = false; bool _is_close_stream = false; std::string _m3u8_file_path; - toolkit::EventPoller::Ptr _poller; + //toolkit::EventPoller::Ptr _poller; public: std::map _segment_file_paths;