Bug 881512 - Restrict MSE codec whitelist to WebM for now. r=cajbir
authorMatthew Gregan <kinetik@flim.org>
Wed, 23 Apr 2014 21:25:00 +1200
changeset 180896 bc6a9d65b84ff312bd9b35b9d9b66e4a8ac6c4fb
parent 180895 cffe91e36df340670c56160e1bc656b87d8ef2a1
child 180904 84ba8cd9ab6740304bb04818e787ec5b108590e7
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewerscajbir
bugs881512
milestone31.0a1
Bug 881512 - Restrict MSE codec whitelist to WebM for now. r=cajbir
content/media/mediasource/MediaSource.cpp
--- a/content/media/mediasource/MediaSource.cpp
+++ b/content/media/mediasource/MediaSource.cpp
@@ -39,19 +39,24 @@ PRLogModuleInfo* gMediaSourceLog;
 // Arbitrary limit.
 static const unsigned int MAX_SOURCE_BUFFERS = 16;
 
 namespace mozilla {
 
 static const char* const gMediaSourceTypes[6] = {
   "video/webm",
   "audio/webm",
+// XXX: Disabled other codecs temporarily to allow WebM testing.  For now, set
+// the developer-only media.mediasource.ignore_codecs pref to true to test other
+// codecs, and expect things to be broken.
+#if 0
   "video/mp4",
   "audio/mp4",
   "audio/mpeg",
+#endif
   nullptr
 };
 
 static nsresult
 IsTypeSupported(const nsAString& aType)
 {
   if (aType.IsEmpty()) {
     return NS_ERROR_DOM_INVALID_ACCESS_ERR;