Bugfix for HLS last fragment missing

This commit is contained in:
wouter spruit 2014-09-01 16:07:25 +02:00
parent 315fb0f40e
commit 1a91c743db

View file

@ -69,6 +69,8 @@ namespace Mist {
if (it != (myMeta.tracks[tid].fragments.end() - 1)){
result << "#EXTINF:" << ((it->getDuration() + 500) / 1000) << ", no desc\r\n" << starttime << "_" << it->getDuration() + starttime << ".ts\r\n";
} else {
result << "#EXTINF:" << ((myMeta.tracks[tid].lastms-starttime + 500) / 1000) << ", no desc\r\n" << starttime << "_" << myMeta.tracks[tid].lastms << ".ts\r\n";
}
}
if ( !myMeta.live){