Skip to content

Commit cc6a215

Browse files
committed
fixed ffprobe exec path
1 parent 4188160 commit cc6a215

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/model/webm.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function updateConfig($object)
3535
public function processMedia($object, $audio)
3636
{
3737
if ($audio == false) {
38-
$video = json_decode(shell_exec('ffprobe -v quiet -print_format json -show_streams -select_streams a '.$object->getParam('path')));
38+
$video = json_decode(shell_exec($this->preferences->get('foolfuuka.plugins.upload_webm.ffprobe_path').' -v quiet -print_format json -show_streams -select_streams a '.$object->getParam('path')));
3939
if (isset($video->streams) && count($video->streams)) {
4040
throw new \Foolz\Foolfuuka\Model\MediaInsertInvalidFormatException(_i('The file you uploaded contains an audio stream which is not allowed.'));
4141
}

0 commit comments

Comments
 (0)