Bug 1271883 - Add Widevine keysystem to sGMPCodecs. r?jwwang
I broke Widevine in 1271242 when I changed EMEDecoderModule::SupportsMimeType()
to call GMPDecoderModule::SupportsMimeType() specifying a GMP to use, as I
didn't add the widevine keysystem to the take of keysystems that we recognise
in GMPDecoderModule. So we're unable to create an EME MediaDataDecoder.
In order to make Widevine EME work again, we need the Widevine keysystem string
in sGMPCodecs in GMPDecoderModule.cpp.
MozReview-Commit-ID: 6bJwsoGYIyL
--- a/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp
+++ b/dom/media/platforms/agnostic/gmp/GMPDecoderModule.cpp
@@ -151,16 +151,17 @@ struct GMPCodecs {
const char* mKeySystem;
bool mHasAAC;
bool mHasH264;
};
static GMPCodecs sGMPCodecs[] = {
{ "org.w3.clearkey", false, false },
{ "com.adobe.primetime", false, false },
+ { "com.widevine.alpha", false, false },
};
void
GMPDecoderModule::UpdateUsableCodecs()
{
MOZ_ASSERT(NS_IsMainThread());
StaticMutexAutoLock lock(sGMPCodecsMutex);