Disable liveSeek function when specified start time is used.

This commit is contained in:
Balder 2023-10-18 16:57:35 +02:00 committed by Thulinma
parent d1e518ae9b
commit caffcd9935

View file

@ -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;