优化hls录制

This commit is contained in:
xiongziliang
2019-12-17 09:18:11 +08:00
parent 1169f29ca6
commit a1e5724c70
4 changed files with 13 additions and 5 deletions

View File

@@ -134,4 +134,8 @@ void HlsMaker::flushLastSegment(bool eof){
_last_file_name.clear();
}
bool HlsMaker::isLive() {
return _seg_number != 0;
}
}//namespace mediakit