aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorDalyn Cessac <dalyn.cessac@1214036.no-reply.drupal.org>2011-03-16 11:07:22 -0500
committerDalyn Cessac <dalyn.cessac@1214036.no-reply.drupal.org>2011-03-16 11:07:22 -0500
commit8ba51e62308276de5240e8ee3569e41f29c36ada (patch)
tree95ad3173b79ea2490ac4642c081100af0a867257 /includes
parenta435de089da4dd37c3c183f633a49107c720dd95 (diff)
parentc1b91533614e6a48e06035b438aadcb7ffb200ee (diff)
downloadvideo-8ba51e62308276de5240e8ee3569e41f29c36ada.tar.gz
video-8ba51e62308276de5240e8ee3569e41f29c36ada.tar.bz2
Merge branch 'refs/heads/7.x-1.x' of dalyn.cessac@git.drupal.org:project/video.git into HEAD
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;