Use HDCP capability with requested security level

Merge of http://go/wvgerrit/13750 in the Widevine repo.
(titled: Add HDCP Capacity to the static adpater)

Updates CryptoSession to use get the HDCP capability from the
oemcrypto with requested security level.

Change-Id: I2338a3f33d0fbe9fe43eb6bf1fe92bf5402f62d6
This commit is contained in:
Fred Gylys-Colwell
2015-03-20 11:47:06 -07:00
parent 69d7ffb22d
commit 6af73ee6d7

View File

@@ -1005,7 +1005,8 @@ bool CryptoSession::GetHdcpCapabilities(OemCryptoHdcpVersion* current_version,
return false;
}
OEMCrypto_HDCP_Capability current, max;
OEMCryptoResult status = OEMCrypto_GetHDCPCapability(&current, &max);
OEMCryptoResult status = OEMCrypto_GetHDCPCapability(
requested_security_level_, &current, &max);
if (OEMCrypto_SUCCESS != status) {
LOGW("OEMCrypto_GetHDCPCapability fails with %d", status);