diff --git a/src/output/output_hls.cpp b/src/output/output_hls.cpp index 70ed70b6..f320309d 100644 --- a/src/output/output_hls.cpp +++ b/src/output/output_hls.cpp @@ -152,7 +152,7 @@ namespace Mist { lines.push_back(lineBuf); } unsigned int skippedLines = 0; - if (myMeta.live) { + if (myMeta.live && lines.size()) { //only print the last segment when VoD lines.pop_back(); /*LTS-START*/