Skip to content

Commit

Permalink
Fix bug where ts files are not written into m3u8 file during HLS play…
Browse files Browse the repository at this point in the history
…back.
  • Loading branch information
xia-chu committed Apr 20, 2024
1 parent 4aa330a commit ff70ef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Record/HlsMaker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void HlsMaker::makeIndexFile(bool include_delay, bool eof) {
GET_CONFIG(uint32_t, segDelay, Hls::kSegmentDelay);
GET_CONFIG(uint32_t, segRetain, Hls::kSegmentRetain);
std::deque<std::tuple<int, std::string>> temp(_seg_dur_list);
if (!include_delay) {
if (!include_delay && _seg_number) {
while (temp.size() > _seg_number) {
temp.pop_front();
}
Expand Down

0 comments on commit ff70ef2

Please sign in to comment.