mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-13 19:51:49 +08:00
合并pr(添加录制ts完成通知): #479
This commit is contained in:
@@ -118,16 +118,12 @@ void HlsMaker::flushLastSegment(bool eof){
|
||||
seg_dur = 100;
|
||||
}
|
||||
_seg_dur_list.push_back(std::make_tuple(seg_dur, std::move(_last_file_name)));
|
||||
_last_file_name.clear();
|
||||
delOldSegment();
|
||||
makeIndexFile(eof);
|
||||
_last_file_name.clear();
|
||||
|
||||
onFlushLastSegment(seg_dur);
|
||||
}
|
||||
|
||||
void HlsMaker::onFlushLastSegment(uint32_t) {
|
||||
}
|
||||
|
||||
bool HlsMaker::isLive() {
|
||||
return _seg_number != 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user