Fix _media_src setIndexFile by mistake for include_delay.

This commit is contained in:
Seto 2024-01-06 18:30:42 +08:00 committed by 夏楚
parent 8048cd886b
commit 27217cb1e6

View File

@ -162,7 +162,7 @@ void HlsMakerImp::onWriteHls(const std::string &data, bool include_delay) {
if (hls) { if (hls) {
fwrite(data.data(), data.size(), 1, hls.get()); fwrite(data.data(), data.size(), 1, hls.get());
hls.reset(); hls.reset();
if (_media_src) { if (_media_src && !include_delay) {
_media_src->setIndexFile(data); _media_src->setIndexFile(data);
} }
} else { } else {