CC-5185: Liquidsoap: Sometimes the 1st track ends early when crossfading is set
This commit is contained in:
parent
4a7a08a119
commit
4c2de70256
1 changed files with 4 additions and 2 deletions
|
@ -711,8 +711,8 @@ class Application_Model_Scheduler
|
|||
$doInsert = true;
|
||||
}
|
||||
|
||||
$endTimeDT = $this->findEndTime($nextStartDT, $file['cliplength']);
|
||||
$endTimeDT = $this->findTimeDifference($endTimeDT, $this->crossfadeDuration);
|
||||
//$endTimeDT = $this->findEndTime($nextStartDT, $file['cliplength']);
|
||||
//$endTimeDT = $this->findTimeDifference($endTimeDT, $this->crossfadeDuration);
|
||||
// default fades are in seconds
|
||||
// we need to convert to '00:00:00' format
|
||||
$file['fadein'] = Application_Common_DateHelper::secondsToPlaylistTime($file['fadein']);
|
||||
|
@ -733,12 +733,14 @@ class Application_Model_Scheduler
|
|||
if ($applyCrossfades) {
|
||||
$nextStartDT = $this->findTimeDifference($nextStartDT,
|
||||
$this->crossfadeDuration);
|
||||
$endTimeDT = $this->findTimeDifference($endTimeDT, $this->crossfadeDuration);
|
||||
/* Set it to false because the rest of the crossfades
|
||||
* will be applied after we insert each item
|
||||
*/
|
||||
$applyCrossfades = false;
|
||||
}
|
||||
|
||||
$endTimeDT = $this->findEndTime($nextStartDT, $file['cliplength']);
|
||||
if ($doInsert) {
|
||||
$values[] = "(".
|
||||
"'{$nextStartDT->format("Y-m-d H:i:s")}', ".
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue