mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-10-31 00:37:39 +08:00
hls用作点播时,那么m3u8文件实时记录为点播
This commit is contained in:
parent
0c79af024c
commit
9b6ee8131b
@ -110,8 +110,8 @@ void HlsMaker::addNewSegment(uint32_t) {
|
||||
return;
|
||||
}
|
||||
|
||||
//关闭并保存上一个切片
|
||||
flushLastSegment();
|
||||
//关闭并保存上一个切片,如果_seg_number==0,那么是点播。
|
||||
flushLastSegment(_seg_number == 0);
|
||||
//新增切片
|
||||
_last_file_name = onOpenSegment(_file_index++);
|
||||
//重置切片计时器
|
||||
|
Loading…
Reference in New Issue
Block a user