diff --git a/libwvdrmengine/cdm/core/src/cdm_session.cpp b/libwvdrmengine/cdm/core/src/cdm_session.cpp index 4edc8e73..6d6720e6 100644 --- a/libwvdrmengine/cdm/core/src/cdm_session.cpp +++ b/libwvdrmengine/cdm/core/src/cdm_session.cpp @@ -740,11 +740,16 @@ CdmResponseType CdmSession::Decrypt(const CdmDecryptionParametersV16& params) { if (is_protected) { if (!policy_engine_->CanDecryptContent(params.key_id)) { if (policy_engine_->IsLicenseForFuture()) return DECRYPT_NOT_READY; - if (!policy_engine_->IsSufficientOutputProtection(params.key_id)) + if (!policy_engine_->IsSufficientOutputProtection(params.key_id)) { + LOGE("Key use prohibited as HDCP or resolution requirements not met"); return INSUFFICIENT_OUTPUT_PROTECTION; + } return NEED_KEY; } if (!policy_engine_->CanUseKeyForSecurityLevel(params.key_id)) { + LOGE( + "Key use prohibited as security level requirements in the policy" + " not met"); return KEY_PROHIBITED_FOR_SECURITY_LEVEL; } }