From b903d81761452d07c36910fd4bb88a7cff00e610 Mon Sep 17 00:00:00 2001 From: bechen Date: Wed, 26 Oct 2016 17:31:22 +0800 Subject: [PATCH] Bug 1286738 - part4-fixWebMAudio: audio/webm doesn't need the IsWebMForced() check. r=jya MozReview-Commit-ID: 1BWpKvT3XTs --HG-- extra : rebase_source : b834c1f767b35036928c3d59663b62ead7482ea9 --- dom/media/mediasource/MediaSource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dom/media/mediasource/MediaSource.cpp b/dom/media/mediasource/MediaSource.cpp index 6e0c9009f137..af541bbbb544 100644 --- a/dom/media/mediasource/MediaSource.cpp +++ b/dom/media/mediasource/MediaSource.cpp @@ -121,8 +121,7 @@ MediaSource::IsTypeSupported(const nsAString& aType, DecoderDoctorDiagnostics* a } if (mimeType.EqualsASCII("audio/webm")) { if (!(Preferences::GetBool("media.mediasource.webm.enabled", false) || - Preferences::GetBool("media.mediasource.webm.audio.enabled", true) || - IsWebMForced(aDiagnostics))) { + Preferences::GetBool("media.mediasource.webm.audio.enabled", true))) { return NS_ERROR_DOM_NOT_SUPPORTED_ERR; } return NS_OK;