HLS segfault fix.

This commit is contained in:
Thulinma 2016-07-21 11:59:17 +02:00
parent b7c37ba60d
commit 70b66cd975

View file

@ -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();
}