? video_filter.patch
Index: video_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v
retrieving revision 1.12.2.10
diff -u -p -r1.12.2.10 video_filter.module
--- video_filter.module	22 Oct 2009 19:40:44 -0000	1.12.2.10
+++ video_filter.module	1 Dec 2009 00:18:02 -0000
@@ -133,7 +133,7 @@ function video_filter_process($text, $fo
         }
 
         $video['autoplay'] = (bool) $video['autoplay'];
-        $video['align'] = in_array($video['align'], array('left', 'right')) ? $video['align'] : NULL;
+        $video['align'] = in_array($video['align'], array('left', 'right', 'center')) ? $video['align'] : NULL;
 
         $replacement = $video['codec']['callback']($video);
       // Invalid format
@@ -218,8 +218,10 @@ function theme_video_filter_flash($video
 
   $output .= '<object type="application/x-shockwave-flash" ';
 
-  if ($video['align']) {
+  if ($video['align'] == 'left' || $video['align'] == 'right') {
     $output .= 'style="float:'.$video['align'].'" ';
+  } elseif ($video['align'] == 'center') {
+    $output .= 'style="display: block; margin: 0 auto;" ';
   }
 
   $output .= 'width="'.$video['width'].'" height="'.$video['height'].'" data="'.$video['source'].'">'."\n";
