mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 10:40:05 +08:00
Fix hls fmp4 clear cache bug (#3355)
Fix hls fmp4 clear cache delete init.mp4 result in play failed for #3348
This commit is contained in:
parent
79b2aa6adc
commit
fe61b572e0
@ -72,7 +72,7 @@ void HlsMakerImp::clearCache(bool immediately, bool eof) {
|
||||
std::list<std::string> lst;
|
||||
lst.emplace_back(_path_hls);
|
||||
lst.emplace_back(_path_hls_delay);
|
||||
if (!_path_init.empty()) {
|
||||
if (!_path_init.empty() && eof) {
|
||||
lst.emplace_back(_path_init);
|
||||
}
|
||||
for (auto &pr : _segment_file_paths) {
|
||||
|
Loading…
Reference in New Issue
Block a user