diff --git a/src/Record/HlsMakerImp.cpp b/src/Record/HlsMakerImp.cpp index 519b3d50..e987f820 100644 --- a/src/Record/HlsMakerImp.cpp +++ b/src/Record/HlsMakerImp.cpp @@ -162,7 +162,7 @@ void HlsMakerImp::onWriteHls(const std::string &data, bool include_delay) { if (hls) { fwrite(data.data(), data.size(), 1, hls.get()); hls.reset(); - if (_media_src) { + if (_media_src && !include_delay) { _media_src->setIndexFile(data); } } else {