Fixed HLS last segment missing.
This commit is contained in:
parent
35ddc79c1a
commit
11cb5a640f
1 changed files with 1 additions and 1 deletions
|
@ -56,7 +56,7 @@ namespace Mist {
|
||||||
long long int starttime = myMeta.tracks[tid].getKey(it->getNumber()).getTime();
|
long long int starttime = myMeta.tracks[tid].getKey(it->getNumber()).getTime();
|
||||||
std::stringstream line;
|
std::stringstream line;
|
||||||
long long duration = it->getDuration();
|
long long duration = it->getDuration();
|
||||||
if (duration < 0){
|
if (duration <= 0){
|
||||||
duration = myMeta.tracks[tid].lastms - starttime;
|
duration = myMeta.tracks[tid].lastms - starttime;
|
||||||
}
|
}
|
||||||
line << "#EXTINF:" << ((duration + 500) / 1000) << ", no desc\r\n" << starttime << "_" << duration + starttime << ".ts\r\n";
|
line << "#EXTINF:" << ((duration + 500) / 1000) << ", no desc\r\n" << starttime << "_" << duration + starttime << ".ts\r\n";
|
||||||
|
|
Loading…
Add table
Reference in a new issue