From 27217cb1e68b00469110e5fd272965e3ba661362 Mon Sep 17 00:00:00 2001 From: Seto <61304189@qq.com> Date: Sat, 6 Jan 2024 18:30:42 +0800 Subject: [PATCH] Fix _media_src setIndexFile by mistake for include_delay. --- src/Record/HlsMakerImp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {