From e6621fc09ca98f8e179f91a1f45d7c20335eb8ed Mon Sep 17 00:00:00 2001 From: Thulinma Date: Fri, 28 Apr 2023 23:48:58 +0200 Subject: [PATCH] Fix last-half-segment split prevention to _actually_ only work for VoD, excluding live-with-VoD --- src/output/output.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output/output.cpp b/src/output/output.cpp index f8fb51bf..6873c383 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -1321,7 +1321,7 @@ namespace Mist{ return false; } // 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; } // is this a split point?