From 1a91c743dbf2fb2b922f7970440950a4f8e176bc Mon Sep 17 00:00:00 2001 From: wouter spruit Date: Mon, 1 Sep 2014 16:07:25 +0200 Subject: [PATCH] Bugfix for HLS last fragment missing --- src/output/output_hls.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output/output_hls.cpp b/src/output/output_hls.cpp index 185a6b02..6b36c6ae 100644 --- a/src/output/output_hls.cpp +++ b/src/output/output_hls.cpp @@ -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){