Index: MediaReadOnlyStreamWrapper.inc
===================================================================
RCS file: /cvs/drupal/contributions/modules/media/MediaReadOnlyStreamWrapper.inc,v
retrieving revision 1.4
diff -u -p -r1.4 MediaReadOnlyStreamWrapper.inc
--- MediaReadOnlyStreamWrapper.inc	11 Nov 2010 18:57:06 -0000	1.4
+++ MediaReadOnlyStreamWrapper.inc	25 Jan 2011 01:02:50 -0000
@@ -196,8 +196,8 @@ abstract class MediaReadOnlyStreamWrappe
     $this->_debug(t('Stream open: %url', array('%url' => $url)));
 
     // We only handle Read-Only mode by default.
-    if ($mode != 'r') {
-      return $this->_report_error('Attempted to open %url as mode: @mode.', array('%url' => $url, '%mode' => $mode), ($options & STREAM_REPORT_ERRORS));
+    if ($mode != 'r' && $mode != 'rb') {
+      return $this->_report_error('Attempted to open %url as mode: %mode.', array('%url' => $url, '%mode' => $mode), ($options & STREAM_REPORT_ERRORS));
     }
 
     // We parse a URL as youtube://v/dsyiufo34/t/cats+dogs to store
