* Fixed the way to throw an exception when we open the file in the Concat media.
This commit is contained in:
Romain Biard 2017-02-22 18:15:15 -03:00 committed by GitHub
commit a76f6528ff

View file

@ -91,7 +91,12 @@ class Concat extends AbstractMediaType
$sourcesFile = $fs->createTemporaryFile('ffmpeg-concat');
// Set the content of this file
$fileStream = fopen($sourcesFile, 'w') or die("Cannot open file.");
$fileStream = @fopen($sourcesFile, 'w');
if($fileStream === false) {
throw new ExecutionFailureException('Cannot open the temporary file.');
}
$count_videos = 0;
if(is_array($this->sources) && (count($this->sources) > 0)) {
foreach ($this->sources as $videoPath) {