mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-29 14:45:55 +08:00
修复m3u8中extinf不准的问题:#816
This commit is contained in:
parent
03addaf0b7
commit
039be5444e
@ -104,7 +104,7 @@ void HlsMaker::addNewSegment(uint32_t stamp) {
|
|||||||
//新增切片
|
//新增切片
|
||||||
_last_file_name = onOpenSegment(_file_index++);
|
_last_file_name = onOpenSegment(_file_index++);
|
||||||
//记录本次切片的起始时间戳
|
//记录本次切片的起始时间戳
|
||||||
_last_seg_timestamp = stamp;
|
_last_seg_timestamp = _last_timestamp ? _last_timestamp : stamp;
|
||||||
}
|
}
|
||||||
|
|
||||||
void HlsMaker::flushLastSegment(bool eof){
|
void HlsMaker::flushLastSegment(bool eof){
|
||||||
|
Loading…
Reference in New Issue
Block a user