summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/movie.php
diff options
context:
space:
mode:
authorMarc <dkm@kataplop.net>2009-06-10 09:53:00 +0200
committerMarc <dkm@kataplop.net>2009-06-10 09:53:00 +0200
commit9b4c7ba73cc86dca8fb6cf81a37fbf806e643483 (patch)
tree0c4d3a99471c21103a34ad5e2fb748199fe4f8f2 /modules/gallery/helpers/movie.php
parent657e17361db19ac1878b2a6d93595a763aef8b15 (diff)
parentfc64a55f2e6d2e3f16e0806e6672f7d8c8de42a7 (diff)
Merge branch 'master' of git://github.com/gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/movie.php')
-rw-r--r--modules/gallery/helpers/movie.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/modules/gallery/helpers/movie.php b/modules/gallery/helpers/movie.php
index 3aa40dc9..986d5f62 100644
--- a/modules/gallery/helpers/movie.php
+++ b/modules/gallery/helpers/movie.php
@@ -142,10 +142,12 @@ class movie_Core {
if (!$ffmpeg_path = module::get_var("gallery", "ffmpeg_path")) {
if (function_exists("exec")) {
$ffmpeg_path = exec("which ffmpeg");
- if ($ffmpeg_path) {
- module::set_var("gallery", "ffmpeg_path", $ffmpeg_path);
- }
}
+
+ if (empty($ffmpeg) && @file_exists("/usr/local/bin/ffmpeg")) {
+ $ffmpeg_path = "/usr/local/bin/ffmpeg";
+ }
+ module::set_var("gallery", "ffmpeg_path", $ffmpeg_path);
}
return $ffmpeg_path;
}