Various improvements and simplifications to HLS
# Conflicts: # src/output/output_hls.cpp
This commit is contained in:
parent
a79f0fc988
commit
d457864bf1
1 changed files with 12 additions and 0 deletions
|
@ -167,6 +167,18 @@ namespace Mist {
|
||||||
durs.pop_front();
|
durs.pop_front();
|
||||||
++skippedLines;
|
++skippedLines;
|
||||||
}
|
}
|
||||||
|
/*LTS-START*/
|
||||||
|
//remove lines to reduce size towards listlimit setting - but keep at least 4X target duration available
|
||||||
|
if (config->getInteger("listlimit")) {
|
||||||
|
unsigned long listlimit = config->getInteger("listlimit");
|
||||||
|
while (lines.size() > listlimit && (total_dur-durs.front()) > (target_dur * 4000)) {
|
||||||
|
lines.pop_front();
|
||||||
|
total_dur -= durs.front();
|
||||||
|
durs.pop_front();
|
||||||
|
++skippedLines;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/*LTS-END*/
|
||||||
}
|
}
|
||||||
|
|
||||||
result << "#EXT-X-MEDIA-SEQUENCE:" << myMeta.tracks[tid].missedFrags + skippedLines << "\r\n";
|
result << "#EXT-X-MEDIA-SEQUENCE:" << myMeta.tracks[tid].missedFrags + skippedLines << "\r\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue