Fix last-half-segment split prevention to _actually_ only work for VoD, excluding live-with-VoD

This commit is contained in:
Thulinma 2023-04-28 23:48:58 +02:00
parent d7ec340d7e
commit e6621fc09c

View file

@ -1321,7 +1321,7 @@ namespace Mist{
return false; return false;
} }
// If splitting would result in a tiny segment at the end, do not split // If splitting would result in a tiny segment at the end, do not split
if (M.getVod() && (endTime() - lastPacketTime) < (atoll(targetParams["split"].c_str()) * 500)){ if (!M.getLive() && (endTime() - lastPacketTime) < (atoll(targetParams["split"].c_str()) * 500)){
return false; return false;
} }
// is this a split point? // is this a split point?