diff --git a/airtime_mvc/application/models/Scheduler.php b/airtime_mvc/application/models/Scheduler.php index a0f1fc3d1..596cbc8d5 100644 --- a/airtime_mvc/application/models/Scheduler.php +++ b/airtime_mvc/application/models/Scheduler.php @@ -644,7 +644,12 @@ class Application_Model_Scheduler $pstart = microtime(true); - $initalStartDT = clone $nextStartDT; + if ($applyCrossfades) { + $initalStartDT = clone $this->findTimeDifference( + $nextStartDT, $this->crossfadeDuration); + } else { + $initalStartDT = clone $nextStartDT; + } $pend = microtime(true); Logging::debug("finding all following items.");