修复HLS按需生成相关bug

This commit is contained in:
xiongziliang
2020-09-12 20:42:58 +08:00
parent 3b5053af50
commit 1b9550cfc4
4 changed files with 14 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ void HlsMakerImp::onWriteHls(const char *data, int len) {
fwrite(data, len, 1, hls.get());
hls.reset();
if (_media_src) {
_media_src->registHls();
_media_src->registHls(true);
}
} else {
WarnL << "create hls file failed," << _path_hls << " " << get_uv_errmsg();