mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-26 04:31:37 +08:00
parent
2818e371b8
commit
efc3e78ba0
@ -137,7 +137,7 @@ void HlsMaker::flushLastSegment(bool eof){
|
|||||||
if (seg_dur <= 0) {
|
if (seg_dur <= 0) {
|
||||||
seg_dur = 100;
|
seg_dur = 100;
|
||||||
}
|
}
|
||||||
_seg_dur_list.push_back(std::make_tuple(seg_dur, std::move(_last_file_name)));
|
_seg_dur_list.emplace_back(seg_dur, std::move(_last_file_name));
|
||||||
delOldSegment();
|
delOldSegment();
|
||||||
//先flush ts切片,否则可能存在ts文件未写入完毕就被访问的情况
|
//先flush ts切片,否则可能存在ts文件未写入完毕就被访问的情况
|
||||||
onFlushLastSegment(seg_dur);
|
onFlushLastSegment(seg_dur);
|
||||||
|
Loading…
Reference in New Issue
Block a user