Index: video_filter.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/video_filter/video_filter.module,v
retrieving revision 1.10.2.6
diff -u -p -r1.10.2.6 video_filter.module
--- video_filter.module	15 Mar 2009 22:48:13 -0000	1.10.2.6
+++ video_filter.module	17 Mar 2009 21:53:16 -0000
@@ -87,6 +87,13 @@ function video_filter_process($text, $fo
         'autoplay' => variable_get('video_filter_autoplay_'.$format, 0),
       );
 
+      // Pick random out of multiple sources separated by ','
+      if (strstr($video['source'], ',')) {
+        $sources = explode(',', $video['source']);
+        $random = array_rand($sources, 1);
+        $video['source'] = $sources[$random];
+      }
+
       // Load all codecs
       $codecs = module_invoke_all('codec_info');
 
@@ -116,13 +123,6 @@ function video_filter_process($text, $fo
           }
         }
 
-        // Pick random out of multiple sources separated by ','
-        if (strstr($video['source'], ',')) {
-          $sources = explode(',', $video['source']);
-          $random = array_rand($sources, 1);
-          $video['source'] = $sources[$random];
-        }
-
         // Resize within set width and height to given ratio
         if ($video['codec']['ratio']) {
           if ($video['width'] * $video['codec']['ratio'] > $video['height']) {
