From 11cb5a640fece88fe8bb0f8bdd1d00ecb35e1c70 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Wed, 4 Mar 2015 16:15:00 +0100 Subject: [PATCH] Fixed HLS last segment missing. --- src/output/output_hls.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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";