aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorHeshan <heshan@heidisoft.com>2011-03-16 10:58:16 +0530
committerHeshan <heshan@heidisoft.com>2011-03-16 10:58:16 +0530
commita31b9883849b0a04420ee1d476fbe08c87bc5d53 (patch)
tree6b3315feb20d6043929953588b01e23f22849790 /includes
parent1689df6273653793d0f2354646fd935f56c6efca (diff)
downloadvideo-a31b9883849b0a04420ee1d476fbe08c87bc5d53.tar.gz
video-a31b9883849b0a04420ee1d476fbe08c87bc5d53.tar.bz2
Fixed the dependencied with the Media module.
Diffstat (limited to 'includes')
-rw-r--r--includes/transcoder.inc5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/transcoder.inc b/includes/transcoder.inc
index bdb447a..019168b 100644
--- a/includes/transcoder.inc
+++ b/includes/transcoder.inc
@@ -59,6 +59,11 @@ class video_transcoder {
$vid = $video['fid'];
$thumbs = $this->transcoder->generate_thumbnails($video);
foreach ($thumbs as $file) {
+ // media module is altering file_manged table with type, so if we do not consider about is then we might get entity load issue.
+ // #1015580
+ // if media module exists add type as an image
+ if (module_exists('media'))
+ $file->type = 'image';
$existing_file = file_load_multiple(array(), array('uri' => $file->uri));
if ($existing_file) // check thumbnail file exists
$file = (array) $existing_file;