summaryrefslogtreecommitdiff
path: root/modules/gallery/helpers/graphics.php
diff options
context:
space:
mode:
authorAndy Staudacher <andy.st@gmail.com>2009-06-16 20:26:49 -0700
committerAndy Staudacher <andy.st@gmail.com>2009-06-16 20:26:49 -0700
commit06ed45f0cb867057eefd5a45d04cba6b8be41411 (patch)
treef4ec5ebff47b9264734a06a611172277acb3c9a1 /modules/gallery/helpers/graphics.php
parentbe226b9baa8ce21431e35c32277fda2e8c94a216 (diff)
parentbaea5e3a1b5a258269accb7ee53f5167607833c2 (diff)
Merge branch 'master' of git@github.com:gallery/gallery3
Diffstat (limited to 'modules/gallery/helpers/graphics.php')
-rw-r--r--modules/gallery/helpers/graphics.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/gallery/helpers/graphics.php b/modules/gallery/helpers/graphics.php
index feebfb34..3f3317ae 100644
--- a/modules/gallery/helpers/graphics.php
+++ b/modules/gallery/helpers/graphics.php
@@ -135,7 +135,12 @@ class graphics_Core {
if ($input_item->is_movie()) {
// Convert the movie to a JPG first
$output_file = preg_replace("/...$/", "jpg", $output_file);
- movie::extract_frame($input_file, $output_file);
+ try {
+ movie::extract_frame($input_file, $output_file);
+ } catch (Exception $e) {
+ // Assuming this is MISSING_FFMPEG for now
+ copy(MODPATH . "gallery/images/missing_movie.png", $output_file);
+ }
$working_file = $output_file;
} else {
$working_file = $input_file;