diff --git a/src/output/output_hls.cpp b/src/output/output_hls.cpp index f74e7ff1..35082e4d 100644 --- a/src/output/output_hls.cpp +++ b/src/output/output_hls.cpp @@ -56,7 +56,7 @@ namespace Mist { long long int starttime = myMeta.tracks[tid].getKey(it->getNumber()).getTime(); std::stringstream line; long long duration = it->getDuration(); - if (duration < 0){ + if (duration <= 0){ duration = myMeta.tracks[tid].lastms - starttime; } line << "#EXTINF:" << ((duration + 500) / 1000) << ", no desc\r\n" << starttime << "_" << duration + starttime << ".ts\r\n";