Bug 1383541 - WMFDecoderModule shouldn't call useless IsH264DecoderBlacklisted() - r?jya
This function now always returns false (since
bug 1253395), so
WMFDecoderModule::HasH264 doesn't need to call it anymore.
Note that we are keeping the code, as we will slightly modify it in the next
patch for a different use.
MozReview-Commit-ID: 7fzktsnFU2m
--- a/dom/media/platforms/wmf/WMFDecoderModule.cpp
+++ b/dom/media/platforms/wmf/WMFDecoderModule.cpp
@@ -189,19 +189,16 @@ IsH264DecoderBlacklisted()
}
#endif // BLACKLIST_CRASHY_H264_DECODERS
return false;
}
/* static */ bool
WMFDecoderModule::HasH264()
{
- if (IsH264DecoderBlacklisted()) {
- return false;
- }
return CanCreateWMFDecoder<CLSID_CMSH264DecoderMFT>();
}
/* static */ bool
WMFDecoderModule::HasAAC()
{
return CanCreateWMFDecoder<CLSID_CMSAACDecMFT>();
}