--- types/video_upload/video_upload.module.orig	2009-11-29 12:05:18.000000000 -0600
+++ types/video_upload/video_upload.module	2009-12-24 01:49:27.348494156 -0600
@@ -134,7 +134,7 @@
 /**
  * Implements the hook_v_auto_resolution
 */
-function video_upload_v_auto_resolution(&$node) {
+function video_upload_v_auto_resolution($node) {
   // as we rely on ffmpeg_helper, let's check if we have video_ffmpeg_helper_installed
   if(module_exists('video_ffmpeg_helper')) {
     return _video_ffmpeg_helper_auto_resolution($node);
@@ -146,7 +146,7 @@
 /**
  * Implements the hook_v_auto_resolution
 */
-function video_upload_v_auto_playtime(&$node) {
+function video_upload_v_auto_playtime($node) {
   // as we rely on ffmpeg_helper, let's check if we have video_ffmpeg_helper_installed
   if(module_exists('video_ffmpeg_helper')) {
     return _video_ffmpeg_helper_auto_playtime($node);
@@ -228,7 +228,7 @@
 /**
  * Implementation of hook_v_form()
 */
-function video_upload_v_form(&$node, &$form) {
+function video_upload_v_form($node, $form) {
   //print 'form';
 
   // add js stuff for the 'upload in progess' message
@@ -254,7 +254,6 @@
 
   if($node->type == 'video' && $node->vtype == 'upload') {
     switch ($op) {
-
       case 'load':
           //exit;
           //print_r($node);
@@ -278,7 +277,6 @@
         break;
 
       case 'insert':
-
         _video_upload_insert($node);
         ////_video_upload_validate($node);
         break;
@@ -346,7 +344,7 @@
 /**
 * Create video upload specific form fields
 */
-function _video_upload_form(&$node) {
+function _video_upload_form($node) {
   _video_upload_check_settings();
 
   $form = array();
@@ -362,10 +360,10 @@
     if($node->current_video_upload_file) { // we don't have a new file
       $form['current_video_upload_file_fid'] = array('#type' => 'hidden', '#value' => $node->current_video_upload_file->fid);
       $form['current_video_upload_file_info'] = array('#type' => 'item', '#value' => theme('video_upload_file_info_form', $node->current_video_upload_file, $node), '#weight' => -10);
-
       $we_have_video = true;
     }
   }
+  
   $form['new_video_upload_file_fid'] = array('#type' => 'hidden', '#value' => 0);
   $form['video_upload_file'] = array(
     '#type' => 'file',
--- video.module.orig	2009-12-20 13:17:01.335760414 -0600
+++ video.module	2009-12-24 01:47:31.542243665 -0600
@@ -529,7 +529,12 @@
         }
       }
       return array($enclosure, $mrss);
+      break;
 
+   case 'presave':
+       video_submit($node);
+       break;
+            
     case 'revision delete':
       db_query('DELETE FROM {video} WHERE vid = %d', $node->vid);
       break;
@@ -820,7 +825,7 @@
 /**
  * Implementation of hook submit
  */
-function video_submit(&$node) {
+function video_submit($node) {
   if(video_support_autoresolution($node) && ($node->new_video_upload_file_fid)) { // vtype support autoresolution getting
     $xy = module_invoke('video_' . $node->vtype, 'v_auto_resolution', $node);
     if ($xy) {
