aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-16 19:00:16 +0530
committerHeshan <heshan@heidisoft.com>2011-03-16 19:00:16 +0530
commit36f6e1f9153c78154858105531cbf710305375f3 (patch)
treedf3a9115165387cfd679e72d3e86acec223463d9 /includes
parenta31b9883849b0a04420ee1d476fbe08c87bc5d53 (diff)
downloadvideo-36f6e1f9153c78154858105531cbf710305375f3.tar.gz
video-36f6e1f9153c78154858105531cbf710305375f3.tar.bz2
Adding multiple trasncoder compatibility and save all thumbnails for later use
Diffstat (limited to 'includes')
-rw-r--r--includes/transcoder.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/transcoder.inc b/includes/transcoder.inc
index 019168b..b17786b 100644
--- a/includes/transcoder.inc
+++ b/includes/transcoder.inc
@@ -64,6 +64,8 @@ class video_transcoder {
// if media module exists add type as an image
if (module_exists('media'))
$file->type = 'image';
+ if (variable_get('video_thumb_save_all', FALSE))
+ $file->status = FILE_STATUS_PERMANENT;
$existing_file = file_load_multiple(array(), array('uri' => $file->uri));
if ($existing_file) // check thumbnail file exists
$file = (array) $existing_file;