--- video_ffmpeg_helper.module.orig	2007-06-27 17:06:22.000000000 +0000
+++ video_ffmpeg_helper.module	2007-06-27 17:05:44.000000000 +0000
@@ -253,6 +253,12 @@
         
         break;
         
+      case 'update':
+        /* delete the already existing batch script, we'll recreate it below */
+        if(variable_get('video_ffmpeg_helper_auto_conversion', false)) {
+           db_query('DELETE FROM {video_rendering} WHERE vid = %d AND nid = %d', $node->vid, $node->nid);
+	}
+	/* FALLTHROUGH */
       case 'insert':
         if(variable_get('video_ffmpeg_helper_auto_conversion', false)) {
           // add rendering job to queue
@@ -301,6 +307,7 @@
 
   // escape file name for safety
   $file = escapeshellarg($_SESSION['video_upload_file']->filepath);
+  if(!$file) $file = escapeshellarg($node->vidfile);
   // create the full command to execute
   $command = variable_get('video_ffmpeg_helper_ffmpeg_path', '/usr/bin/ffmpeg') . ' -i ' . $file;
   
