? video_filter_378148_1.patch
? video_filter_378148_5.patch
Index: video_filter.codecs.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.codecs.inc,v
retrieving revision 1.3.2.11
diff -u -p -r1.3.2.11 video_filter.codecs.inc
--- video_filter.codecs.inc	31 Jul 2009 22:14:00 -0000	1.3.2.11
+++ video_filter.codecs.inc	14 Aug 2009 02:16:53 -0000
@@ -123,7 +123,7 @@ function video_filter_codec_info() {
 }
 
 function video_filter_youtube($video) {
-  $video['source'] = 'http://www.youtube.com/v/'.$video['codec']['matches'][1].($video['autoplay'] ? '&autoplay=1' : '').'&amp;fs=1';
+  $video['source'] = 'http://www.youtube.com/v/'.$video['codec']['matches'][1].($video['autoplay'] ? '&autoplay=1' : '').'&amp;fs=1'.($video['related'] ? '' : '&rel=0');
 
   return video_filter_flash($video);
 }
Index: video_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v
retrieving revision 1.12.2.6
diff -u -p -r1.12.2.6 video_filter.module
--- video_filter.module	31 Jul 2009 22:17:00 -0000	1.12.2.6
+++ video_filter.module	14 Aug 2009 02:16:53 -0000
@@ -89,6 +89,7 @@ function video_filter_process($text, $fo
         'width' => variable_get('video_filter_width_'.$format, 400),
         'height' => variable_get('video_filter_height_'.$format, 400),
         'autoplay' => variable_get('video_filter_autoplay_'.$format, 0),
+        'related' => variable_get('video_filter_related_'.$format, 1),
       );
 
       // Pick random out of multiple sources separated by ','
@@ -207,6 +208,16 @@ function video_filter_settings($format) 
       width => t('Width'),
     ),
   );
+  $form['video_filter']['video_filter_related_'.$format] = array(
+    '#type' => 'radios',
+    '#title' => t('Related videos setting'),
+    '#description' => t('Show "related videos"? Not all video formats support this setting.'),
+    '#default_value' => variable_get('video_filter_related_'.$format, 1),
+    '#options' => array(
+      0 => t('No'),
+      1 => t('Yes'),
+    ),
+  );
 
   return $form;
 }
