Bug 1187247: [MSE] P2. Enable WebM in MediaSource. r=jya

This commit is contained in:
Jan Gerber 2015-07-21 12:54:50 +02:00 committed by Jean-Yves Avenard
parent ef06297ee0
commit 30a3380a91

View File

@ -99,8 +99,7 @@ IsTypeSupported(const nsAString& aType)
}
return NS_OK;
} else if (DecoderTraits::IsWebMType(mimeTypeUTF8)) {
if (!Preferences::GetBool("media.mediasource.webm.enabled", false) ||
Preferences::GetBool("media.mediasource.format-reader", false)) {
if (!Preferences::GetBool("media.mediasource.webm.enabled", false)) {
return NS_ERROR_DOM_NOT_SUPPORTED_ERR;
}
if (hasCodecs &&