From caffcd9935e71d4bdb71c9a2e56b82f7bee7d64b Mon Sep 17 00:00:00 2001 From: Balder Date: Wed, 18 Oct 2023 16:57:35 +0200 Subject: [PATCH] Disable liveSeek function when specified start time is used. --- src/output/output.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/output/output.cpp b/src/output/output.cpp index 2b7bfb8d..45fe2aa6 100644 --- a/src/output/output.cpp +++ b/src/output/output.cpp @@ -1291,6 +1291,8 @@ namespace Mist{ /// Aborts if not live, there is no main track or it has no keyframes. bool Output::liveSeek(bool rateOnly){ if (!realTime){return false;}//Makes no sense when playing in turbo mode + if (targetParams.count("start")){return false;} //disable seeking forward if start is given + if (targetParams.count("recstart")){return false;} //disable seeking forward for pushes with start time if (maxSkipAhead == 1){return false;}//A skipAhead of 1 signifies disabling the skipping/rate control system entirely. if (!meta.getLive()){return false;} uint64_t seekPos = 0;