Merge "Revert conditional tests using a logical AND operator."
This commit is contained in:
@@ -551,14 +551,13 @@ CdmResponseType CdmSession::Decrypt(const CdmDecryptionParameters& params) {
|
|||||||
|
|
||||||
// Playback may not begin until either the start time passes or the license
|
// Playback may not begin until either the start time passes or the license
|
||||||
// is updated, so we treat this Decrypt call as invalid.
|
// is updated, so we treat this Decrypt call as invalid.
|
||||||
if (params.is_encrypted) {
|
if (params.is_encrypted &&
|
||||||
if (!policy_engine_->CanDecryptContent(*params.key_id)) {
|
!policy_engine_->CanDecryptContent(*params.key_id)) {
|
||||||
if (policy_engine_->IsLicenseForFuture())
|
if (policy_engine_->IsLicenseForFuture())
|
||||||
return DECRYPT_NOT_READY;
|
return DECRYPT_NOT_READY;
|
||||||
if (!policy_engine_->IsSufficientOutputProtection(*params.key_id))
|
if (!policy_engine_->IsSufficientOutputProtection(*params.key_id))
|
||||||
return INSUFFICIENT_OUTPUT_PROTECTION;
|
return INSUFFICIENT_OUTPUT_PROTECTION;
|
||||||
return NEED_KEY;
|
return NEED_KEY;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
CdmResponseType status = crypto_session_->Decrypt(params);
|
CdmResponseType status = crypto_session_->Decrypt(params);
|
||||||
|
|||||||
Reference in New Issue
Block a user