Index: ffmpeg_wrapper.info
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ffmpeg_wrapper/ffmpeg_wrapper.info,v
retrieving revision 1.1
diff -u -r1.1 ffmpeg_wrapper.info
--- ffmpeg_wrapper.info	16 Mar 2008 07:04:36 -0000	1.1
+++ ffmpeg_wrapper.info	17 Sep 2008 01:19:28 -0000
@@ -1,4 +1,4 @@
 ; $Id: ffmpeg_wrapper.info,v 1.1 2008/03/16 07:04:36 arthuregg Exp $
 name = FFmpeg Wrapper
 description = This is a helper module for modules which wish to implement FFmpeg functions
-package = "Other"
+core=6.x
Index: ffmpeg_wrapper.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/ffmpeg_wrapper/ffmpeg_wrapper.module,v
retrieving revision 1.1.2.15
diff -u -r1.1.2.15 ffmpeg_wrapper.module
--- ffmpeg_wrapper.module	3 Sep 2008 14:28:33 -0000	1.1.2.15
+++ ffmpeg_wrapper.module	17 Sep 2008 01:19:29 -0000
@@ -15,24 +15,21 @@
  * @param boolean $may_cache
  * @return array of menu items
  */
-function ffmpeg_wrapper_menu($may_cache) {
+function ffmpeg_wrapper_menu() {
   $items = array();
-  if ($may_cache) { 
-    $items[] = array(
-      'path' => 'admin/settings/ffmpeg_wrapper',
-      'title' => t('FFmpeg Wrapper'),
-      'callback' => 'drupal_get_form',
-      'callback arguments' => array('ffmpeg_wrapper_admin'),
-      'access' => user_access('administer ffmpeg wrapper'),
-    );
-    // hand back the specific configurations for a codec
-    $items[] = array(
-      'path' => 'ffmpeg_wrapper/output',
-      'title' => t('FFmpeg Wrapper'),
-      'callback' => 'ffmpeg_wrapper_output_display',    
-      'access' => user_access('access content'),
-    );    
-  }
+  $items['admin/settings/ffmpeg_wrapper'] = array(
+    'title' => 'FFmpeg Wrapper',
+    'page callback' => 'drupal_get_form',
+    'page arguments' => array('ffmpeg_wrapper_admin'),
+    'access arguments' => array('administer ffmpeg wrapper'),
+  );
+  // hand back the specific configurations for a codec
+  $items['ffmpeg_wrapper/output'] = array(
+    'title' => 'FFmpeg Wrapper',
+    'page callback' => 'ffmpeg_wrapper_output_display',
+    'page arguments' => array(2),  
+    'access arguments' => array('access content'),
+  );    
   return $items;
 }
 
@@ -127,14 +124,14 @@
  * @param int $form_id
  * @param array $form_values
  */
-function ffmpeg_wrapper_admin_validate($form_id, $form_values) {
+function ffmpeg_wrapper_admin_validate($form, &$form_state) {
   // make sure we've got the path to the ffmpeg binary
-  if (! ffmpeg_wrapper_run_command(null, false, $form_values['ffmpeg_wrapper_path']) && $form_values['ffmpeg_wrapper_path']) {
+  if (! ffmpeg_wrapper_run_command(null, false, $form_state['values']['ffmpeg_wrapper_path']) && $form_state['values']['ffmpeg_wrapper_path']) {
     form_set_error('ffmpeg_wrapper_path', t('FFmpeg binary was not found on the path you specified. Maybe try a different path?'));
   }
   
   // check and see if we can find the vhook directory
-  if (! is_dir($form_values['ffmpeg_wrapper_vhook']) && $form_values['ffmpeg_wrapper_vhook']) {
+  if (! is_dir($form_state['values']['ffmpeg_wrapper_vhook']) && $form_state['values']['ffmpeg_wrapper_vhook']) {
     form_set_error('ffmpeg_wrapper_vhook', t('The vhook directory was not found on the path you specified. Maybe try a different path?'));
   }
 }
@@ -643,7 +640,7 @@
 	);
 	$default['default'] = 'default';
 	
-	cache_set('ffmpeg_wrapper_default_output', 'cache', serialize($default), CACHE_TEMPORARY);
+	cache_set('ffmpeg_wrapper_default_output', $default, 'cache', CACHE_TEMPORARY);
 	
 	return $default;	
 }
