mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
Add check on Video icon on video thumbnail
This commit is contained in:
@@ -88,8 +88,12 @@ class binaryAdapter_video_toimage_ffmpeg extends binaryAdapter_video_processorAb
|
||||
$this->log("Commande executee : $cmd \n");
|
||||
|
||||
if ( ! file_exists($tmpFile))
|
||||
{
|
||||
throw new Exception('Unable to extract image');
|
||||
}
|
||||
|
||||
if (file_exists($this->registry->get('GV_RootPath') . 'www/skins/icons/play.png'))
|
||||
{
|
||||
$cmd = $this->registry->get('GV_pathcomposite')
|
||||
. ' -gravity SouthEast -quiet -compose over "'
|
||||
. $this->registry->get('GV_RootPath') . 'www/skins/icons/play.png"'
|
||||
@@ -98,6 +102,12 @@ class binaryAdapter_video_toimage_ffmpeg extends binaryAdapter_video_processorAb
|
||||
|
||||
$this->shell_cmd($cmd);
|
||||
unlink($tmpFile);
|
||||
}
|
||||
else
|
||||
{
|
||||
rename($tmpFile, $dest);
|
||||
}
|
||||
|
||||
rmdir($tmpDir);
|
||||
|
||||
return $this;
|
||||
|
Reference in New Issue
Block a user