mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 03:55:58 +08:00
HLS: 解决hls断流重新生成后异常的bug
This commit is contained in:
@@ -92,7 +92,7 @@ void HlsMaker::inputData(void *data, size_t len, uint32_t timestamp, bool is_idr
|
||||
}
|
||||
} else {
|
||||
//resetTracks时触发此逻辑
|
||||
flushLastSegment(true);
|
||||
flushLastSegment(false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -151,6 +151,7 @@ bool HlsMaker::isLive() {
|
||||
|
||||
void HlsMaker::clear() {
|
||||
_file_index = 0;
|
||||
_last_timestamp = 0;
|
||||
_last_seg_timestamp = 0;
|
||||
_seg_dur_list.clear();
|
||||
_last_file_name.clear();
|
||||
|
||||
Reference in New Issue
Block a user