Bug 1403063 - Disable VP8 HW decoder on Windows. r?gerald draft
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 26 Sep 2017 08:08:12 +0200
changeset 670251 543c1a33d94113ad3a3b730524ea47debb0f64cb
parent 670080 2d9f007918fd0d75872541f0d71420396bd45989
child 733181 5b3e33201f7dfb6e5fdabf9c435d372228e9e74e
push id81572
push userbmo:jyavenard@mozilla.com
push dateTue, 26 Sep 2017 06:08:43 +0000
reviewersgerald
bugs1403063
milestone58.0a1
Bug 1403063 - Disable VP8 HW decoder on Windows. r?gerald MozReview-Commit-ID: KJLfSFYyTWu
dom/media/platforms/wmf/WMFDecoderModule.cpp
--- a/dom/media/platforms/wmf/WMFDecoderModule.cpp
+++ b/dom/media/platforms/wmf/WMFDecoderModule.cpp
@@ -210,18 +210,17 @@ WMFDecoderModule::Supports(const TrackIn
   if (MP4Decoder::IsH264(aTrackInfo.mMimeType) && WMFDecoderModule::HasH264()) {
     return true;
   }
   if (aTrackInfo.mMimeType.EqualsLiteral("audio/mpeg") &&
       CanCreateWMFDecoder<CLSID_CMP3DecMediaObject>()) {
     return true;
   }
   if (MediaPrefs::PDMWMFVP9DecoderEnabled()) {
-    if ((VPXDecoder::IsVP8(aTrackInfo.mMimeType) ||
-         VPXDecoder::IsVP9(aTrackInfo.mMimeType)) &&
+    if (VPXDecoder::IsVP9(aTrackInfo.mMimeType) &&
         ((gfxPrefs::PDMWMFAMDVP9DecoderEnabled() &&
           CanCreateWMFDecoder<CLSID_AMDWebmMfVp9Dec>()) ||
          CanCreateWMFDecoder<CLSID_WebmMfVpxDec>())) {
       return true;
     }
   }
 
   // Some unsupported codec.