aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeshan Wanigasooriya <heshanmw@gmail.com>2009-06-16 15:34:12 +0000
committerHeshan Wanigasooriya <heshanmw@gmail.com>2009-06-16 15:34:12 +0000
commitbca8020d463aed8063d485016a79bba41fe149e7 (patch)
treeab65416d7b8bfdd326f99fc335667990c9842e71
parentb91b49fe5b06d06fbb646d3fb09dd483555a6e5f (diff)
downloadvideo-bca8020d463aed8063d485016a79bba41fe149e7.tar.gz
video-bca8020d463aed8063d485016a79bba41fe149e7.tar.bz2
#488616 by glen201 : Upload Video module seems designed to lose your converted video. Patch created and applied to Drupal 6 branch.
Missing converted video files after upload fixed!.
-rw-r--r--plugins/video_ffmpeg_helper/video_render.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/video_ffmpeg_helper/video_render.php b/plugins/video_ffmpeg_helper/video_render.php
index 2d8e0ec..0018d98 100644
--- a/plugins/video_ffmpeg_helper/video_render.php
+++ b/plugins/video_ffmpeg_helper/video_render.php
@@ -133,7 +133,7 @@ function video_render_main() {
if (file_copy($file, $dest_dir)) {
//$file->fid = db_next_id('{files}_fid');
//print_r($file);
- db_query("INSERT INTO {files} (fid, uid, filename, filepath, filemime, filesize) VALUES (%d, %d, '%s', '%s', '%s', %d)", $file->fid, $job->uid, $file->filename, $file->filepath, $file->filemime, $file->filesize);
+ db_query("INSERT INTO {files} (fid, uid, filename, filepath, filemime, filesize, status) VALUES (%d, %d, '%s', '%s', '%s', %d, %d)", $file->fid, $job->uid, $file->filename, $file->filepath, $file->filemime, $file->filesize, 1);
// to know other modules of fid
$file->fid = db_last_insert_id('files', 'fid');