CC-2301 : CRLF fix.
This commit is contained in:
parent
0db557a570
commit
2462e4f144
|
@ -670,27 +670,27 @@ SQL;
|
|||
return array($fadeIn, $fadeOut);
|
||||
}
|
||||
|
||||
/*
|
||||
* create a crossfade from item in cc_playlist_contents with $id1 to item $id2.
|
||||
*
|
||||
* $fadeOut length of fade out in seconds if $id1
|
||||
* $fadeIn length of fade in in seconds of $id2
|
||||
* $offset time in seconds from end of $id1 that $id2 will begin to play.
|
||||
*/
|
||||
public function createCrossfade($id1, $fadeOut, $id2, $fadeIn, $offset)
|
||||
{
|
||||
$this->con->beginTransaction();
|
||||
|
||||
try {
|
||||
$this->changeFadeInfo($id1, null, $fadeOut);
|
||||
$this->changeFadeInfo($id2, $fadeIn, null, $offset);
|
||||
|
||||
$this->con->commit();
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->con->rollback();
|
||||
throw $e;
|
||||
}
|
||||
/*
|
||||
* create a crossfade from item in cc_playlist_contents with $id1 to item $id2.
|
||||
*
|
||||
* $fadeOut length of fade out in seconds if $id1
|
||||
* $fadeIn length of fade in in seconds of $id2
|
||||
* $offset time in seconds from end of $id1 that $id2 will begin to play.
|
||||
*/
|
||||
public function createCrossfade($id1, $fadeOut, $id2, $fadeIn, $offset)
|
||||
{
|
||||
$this->con->beginTransaction();
|
||||
|
||||
try {
|
||||
$this->changeFadeInfo($id1, null, $fadeOut);
|
||||
$this->changeFadeInfo($id2, $fadeIn, null, $offset);
|
||||
|
||||
$this->con->commit();
|
||||
|
||||
} catch (Exception $e) {
|
||||
$this->con->rollback();
|
||||
throw $e;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -738,10 +738,10 @@ SQL;
|
|||
}
|
||||
$row->setDbFadein($fadeIn);
|
||||
|
||||
if (!is_null($offset)) {
|
||||
$row->setDbTrackOffset($offset);
|
||||
Logging::info("Setting offset {$offset} on item {$id}");
|
||||
$row->save($this->con);
|
||||
if (!is_null($offset)) {
|
||||
$row->setDbTrackOffset($offset);
|
||||
Logging::info("Setting offset {$offset} on item {$id}");
|
||||
$row->save($this->con);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue