diff options
author | shadlaws <shad@shadlaws.com> | 2012-12-18 15:58:13 +0100 |
---|---|---|
committer | shadlaws <shad@shadlaws.com> | 2012-12-18 15:58:13 +0100 |
commit | ce68177ba0dc27010435e55b79cbea453751f8ee (patch) | |
tree | 90abf82dfadf5bf4c79233798efca1aaafb51963 /modules/gallery/helpers/gallery_installer.php | |
parent | f2a32526be0a307005052105ed09bc337e29d333 (diff) |
[#1928 - Make thumbnail generation more flexible for movies (graphics and movie helpers)]
- graphics helper: add movie_extract_frame event to generate function
(allows modules to add to the options sent to movie::extract_frame or to
generate the thumbnail on their own without movie::extract_frame)
- movie helper: add extra optional argument to movie::extract_frame
(can add ffmpeg arguments and/or change the frame extract time)
- gallery_installer: add movie_extract_time module variable, update to v53
- module.info: update to v53
- install.sql: update to v53
Diffstat (limited to 'modules/gallery/helpers/gallery_installer.php')
-rw-r--r-- | modules/gallery/helpers/gallery_installer.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/gallery/helpers/gallery_installer.php b/modules/gallery/helpers/gallery_installer.php index 1f190800..597771f3 100644 --- a/modules/gallery/helpers/gallery_installer.php +++ b/modules/gallery/helpers/gallery_installer.php @@ -313,8 +313,9 @@ class gallery_installer { module::set_var("gallery", "extra_binary_paths", "/usr/local/bin:/opt/local/bin:/opt/bin"); module::set_var("gallery", "timezone", null); module::set_var("gallery", "lock_timeout", 1); + module::set_var("gallery", "movie_extract_frame_time", 3); - module::set_version("gallery", 52); + module::set_version("gallery", 53); } static function upgrade($version) { @@ -735,6 +736,13 @@ class gallery_installer { ->execute(); module::set_version("gallery", $version = 52); } + + if ($version == 52) { + // In v53, we added the ability to change the default time used when extracting frames from + // movies. Previously we hard-coded this at 3 seconds, so we use that as the default. + module::set_var("gallery", "movie_extract_frame_time", 3); + module::set_version("gallery", $version = 53); + } } static function uninstall() { |