Workaround for casting and playback failures
Change-Id: I45add76d7941d4942368d10e5893ff8f89a8bf82 related-to-bug: 16994418
This commit is contained in:
@@ -286,6 +286,12 @@ bool CdmLicense::PrepareKeyRequest(const InitializationData& init_data,
|
|||||||
client_id->mutable_client_capabilities();
|
client_id->mutable_client_capabilities();
|
||||||
bool supports_usage_information;
|
bool supports_usage_information;
|
||||||
if (session_->UsageInformationSupport(&supports_usage_information)) {
|
if (session_->UsageInformationSupport(&supports_usage_information)) {
|
||||||
|
#if 1 // Temporary workaround for b/16994418
|
||||||
|
std::string value;
|
||||||
|
if (Properties::GetModelName(&value) && value == "ADT-1") {
|
||||||
|
supports_usage_information = false;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
client_capabilities->set_session_token(supports_usage_information);
|
client_capabilities->set_session_token(supports_usage_information);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -328,8 +334,19 @@ bool CdmLicense::PrepareKeyRequest(const InitializationData& init_data,
|
|||||||
|
|
||||||
uint32_t version = 0;
|
uint32_t version = 0;
|
||||||
if (session_->GetApiVersion(&version)) {
|
if (session_->GetApiVersion(&version)) {
|
||||||
|
#if 1 // Temporary workaround for b/16994418
|
||||||
|
std::string value;
|
||||||
|
bool set_api_version = true;
|
||||||
|
if (Properties::GetModelName(&value) && value == "ADT-1") {
|
||||||
|
set_api_version = false;
|
||||||
|
}
|
||||||
|
if (set_api_version) {
|
||||||
client_capabilities->set_oem_crypto_api_version(version);
|
client_capabilities->set_oem_crypto_api_version(version);
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
client_capabilities->set_oem_crypto_api_version(version);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
if (privacy_mode_enabled) {
|
if (privacy_mode_enabled) {
|
||||||
EncryptedClientIdentification* encrypted_client_id =
|
EncryptedClientIdentification* encrypted_client_id =
|
||||||
|
|||||||
Reference in New Issue
Block a user