Bug 1370079: P1. Don't check for DXVA support when checking for VP9 support. r?mattwoodrow
SupportsMimeType is called in the content process, for which, following
bug 1338011, dxva is marked as disabled.
CanCreateWMFDecoder already performs the check of allowing VP9 only if it's hardware accelerated, so we don't need to test if dxva is enabled prior.
MozReview-Commit-ID: 7Jvaop6ZznU
--- a/dom/media/platforms/wmf/WMFDecoderModule.cpp
+++ b/dom/media/platforms/wmf/WMFDecoderModule.cpp
@@ -249,17 +249,17 @@ WMFDecoderModule::Supports(const TrackIn
}
}
return true;
}
if (aTrackInfo.mMimeType.EqualsLiteral("audio/mpeg") &&
CanCreateWMFDecoder<CLSID_CMP3DecMediaObject>()) {
return true;
}
- if (MediaPrefs::PDMWMFVP9DecoderEnabled() && sDXVAEnabled) {
+ if (MediaPrefs::PDMWMFVP9DecoderEnabled()) {
if ((VPXDecoder::IsVP8(aTrackInfo.mMimeType)
|| VPXDecoder::IsVP9(aTrackInfo.mMimeType))
&& CanCreateWMFDecoder<CLSID_WebmMfVpxDec>()) {
return true;
}
}
// Some unsupported codec.