From 70b66cd9756c2c889e4f2c69fb11e3d1601ad56d Mon Sep 17 00:00:00 2001 From: Thulinma Date: Thu, 21 Jul 2016 11:59:17 +0200 Subject: [PATCH] HLS segfault fix. --- 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 0e295fd8..c1763885 100644 --- a/src/output/output_hls.cpp +++ b/src/output/output_hls.cpp @@ -75,7 +75,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(); }