Index: video_filter.codecs.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.codecs.inc,v
retrieving revision 1.3.2.23
diff -u -r1.3.2.23 video_filter.codecs.inc
--- video_filter.codecs.inc	14 Mar 2010 13:21:32 -0000	1.3.2.23
+++ video_filter.codecs.inc	15 Mar 2010 22:26:16 -0000
@@ -166,24 +166,28 @@
 
 function video_filter_youtube($video) {
   $video['source'] = 'http://www.youtube.com/v/'.$video['codec']['matches'][1].($video['autoplay'] ? '&amp;autoplay=1' : '').'&amp;fs=1'.($video['related'] ? '' : '&amp;rel=0');
-
+  $video['uniq-id'] = $video['codec']['matches'][1];
+    
   return video_filter_flash($video);
 }
 
 function video_filter_google($video) {
   $video['source'] = 'http://video.google.com/googleplayer.swf?docId='.$video['codec']['matches'][1];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
 
 function video_filter_tangle($video) {
   $video['source'] = 'http://www.tangle.com/flash/swf/flvplayer.swf?viewkey='.$video['codec']['matches'][1];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
 
 function video_filter_dailymotion($video) {
   $video['source'] = 'http://www.dailymotion.com/swf/'.$video['codec']['matches'][1];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
@@ -196,6 +200,7 @@
 
 function video_filter_vimeo($video) {
   $video['source'] = 'http://www.vimeo.com/moogaloop.swf?clip_id='.$video['codec']['matches'][1].'&amp;server=www.vimeo.com&amp;fullscreen=1&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=&amp;autoplay='.$video['autoplay'];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
@@ -208,26 +213,30 @@
   $set_id = $video['codec']['matches'][2];
 
   $params['flashvars'] = "&amp;offsite=true&amp;lang=en-us&amp;page_show_url=%2Fphotos%2F$user_name%2Fsets%2F$set_id%2Fshow%2F&amp;page_show_back_url=%2Fphotos%2F$user_name%2Fsets%2F$set_id%2F&amp;set_id=$set_id&amp;jump_to=";
+  
+  $video['uniq-id'] = $user_name.'-'.$set_id;
 
   return video_filter_flash($video, $params);
 }
 
 function video_filter_flickr_video($video) {
   $video['source'] = 'http://www.flickr.com/apps/video/stewart.swf?v=1.161';
-
   $params['flashvars'] = '&amp;photo_id='.$video['codec']['matches'][2].'&amp;flickr_show_info_box=true';
+  $video['uniq-id'] = $video['codec']['matches'][2];
 
   return video_filter_flash($video, $params);
 }
 
 function video_filter_gamevideos($video) {
   $video['source'] = 'http://gamevideos.1up.com/swf/gamevideos12.swf?embedded=1&amp;fullscreen=1&amp;autoplay=0&amp;src=http://gamevideos.1up.com/do/videoListXML%3Fid%3D'.$video['codec']['matches'][1];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
 
 function video_filter_metacafe($video) {
   $video['source'] = 'http://metacafe.com/fplayer/'.$video['codec']['matches'][1].'/'.$video['codec']['matches'][2].'.swf';
+  $video['uniq-id'] = $video['codec']['matches'][1].'-'.$video['codec']['matches'][2];
 
   return video_filter_flash($video);
 }
@@ -251,6 +260,8 @@
   $params['flashvars'] .= '&amp;width=' . $video['width'] ;
   $params['flashvars'] .= '&amp;height=' . $video['height'] ;
   $params['flashvars'] .= !empty($video['autoplay']) ? '&amp;autostart=true' : '&amp;autostart=false';
+  
+  $video['uniq-id'] = $video['codec']['matches'][3].'-'.$video['codec']['matches'][4];
 
   return video_filter_flash($video, $params);
 }
@@ -263,24 +274,28 @@
     $match = $video['codec']['matches'][2];
   }
   $video['source'] = 'http://www.gametrailers.com/remote_wrap.php?mid='.$match;
+  $video['uniq-id'] = $match;
 
   return video_filter_flash($video, $params);
 }
 
 function video_filter_collegehumor($video) {
   $video['source'] = 'http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.$video['codec']['matches'][1].'&amp;fullscreen=1';
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
 
 function video_filter_myspace($video) {
   $video['source'] = 'http://mediaservices.myspace.com/services/media/embed.aspx/m='.$video['codec']['matches'][1];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video, $params);
 }
 
 function video_filter_capped($video) {
   $video['source'] = 'http://capped.micksam7.com/playeralt.swf?vid='.$video['codec']['matches'][1];
+  $video['uniq-id'] = $video['codec']['matches'][1];
 
   return video_filter_flash($video);
 }
@@ -330,12 +345,14 @@
   $params = array(
     'allowscriptaccess' => 'always',
   );
+  $video['uniq-id'] = $id;
   
   return video_filter_flash($video, $params);
 }
 
 function video_filter_slideshare($video) {
   $video['source'] = 'http://static.slideshare.net/swf/ssplayer2.swf?id=' . $video['codec']['matches'][1] . '&amp;doc=' . ($video['codec']['matches'][2]);
+  $video['uniq-id'] = $video['codec']['matches'][1].'-'.$video['codec']['matches'][2];
 
   return video_filter_flash($video);
 }
@@ -347,6 +364,8 @@
   $set_id = $video['codec']['matches'][2];
 
   $params['flashvars'] = "host=picasaweb.google.com&amp;&amp;feat=flashalbum&amp;RGB=0x000000&amp;feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2F" . $user_name . "%2Falbumid%2F" . $set_id . "%3Falt%3Drss%26kind%3Dphoto%26" . ($video['autoplay'] ? '' : '&amp;noautoplay=1');
+  
+  $video['uniq-id'] = $user_name.'-'.$set_id;
 
   return video_filter_flash($video, $params);
 }
Index: video_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v
retrieving revision 1.12.2.12
diff -u -r1.12.2.12 video_filter.module
--- video_filter.module	5 Mar 2010 09:32:24 -0000	1.12.2.12
+++ video_filter.module	15 Mar 2010 22:20:21 -0000
@@ -209,8 +209,14 @@
  */
 function theme_video_filter_flash($video, $params) {
   $output = '';
+  
+  $classes = array('video-filter');
 
-  $output .= '<object type="application/x-shockwave-flash" ';
+  if($video['uniq-id']) {
+    $classes[] = 'video-filter-'.$video['uniq-id'];
+  }
+
+  $output .= '<object class="'.implode(' ', $classes).'" type="application/x-shockwave-flash" ';
 
   if ($video['align']) {
     $output .= 'style="float:'.$video['align'].'" ';

