Bug 1513227 - P1. Use correct constant to determine if HW decoding is enabled. r=jolin, a=RyanVM
authorJean-Yves Avenard <jyavenard@mozilla.com>
Tue, 11 Dec 2018 17:37:47 +0000
changeset 506207 160a8da4777dddba75edcda085bf8e5e728046ce
parent 506206 1ad308897e69c198246e75507d5252b8e6146725
child 506208 89802baabef7979f639ffb64ba71798cf195ca97
push id10332
push userryanvm@gmail.com
push dateThu, 13 Dec 2018 22:43:02 +0000
treeherdermozilla-beta@33cfba1a9fbd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjolin, RyanVM
bugs1513227
milestone65.0
Bug 1513227 - P1. Use correct constant to determine if HW decoding is enabled. r=jolin, a=RyanVM Differential Revision: https://phabricator.services.mozilla.com/D14158
dom/media/platforms/apple/AppleVTDecoder.cpp
--- a/dom/media/platforms/apple/AppleVTDecoder.cpp
+++ b/dom/media/platforms/apple/AppleVTDecoder.cpp
@@ -457,17 +457,17 @@ MediaResult AppleVTDecoder::InitializeSe
   if (rv != noErr) {
     return MediaResult(NS_ERROR_DOM_MEDIA_FATAL_ERR,
                        RESULT_DETAIL("Couldn't create decompression session!"));
   }
 
   CFBooleanRef isUsingHW = nullptr;
   rv = VTSessionCopyProperty(
       mSession,
-      kVTVideoDecoderSpecification_EnableHardwareAcceleratedVideoDecoder,
+      kVTDecompressionPropertyKey_UsingHardwareAcceleratedVideoDecoder,
       kCFAllocatorDefault, &isUsingHW);
   if (rv != noErr) {
     LOG("AppleVTDecoder: system doesn't support hardware acceleration");
   }
   mIsHardwareAccelerated = rv == noErr && isUsingHW == kCFBooleanTrue;
   LOG("AppleVTDecoder: %s hardware accelerated decoding",
       mIsHardwareAccelerated ? "using" : "not using");