Corrections for limited duration licenses
[ Merge of http://go/wvgerrit/74627 ] Limited duration licenses (where license duration is unlimited and playback window is set to a small value) did not work correctly when the initial decrypt call occured before the license was received. Bug: 109653883 Test: WV unit/integration tests Change-Id: I0738e97db525b239455e2ac93ab0bedd6611b311
This commit is contained in:
@@ -640,8 +640,7 @@ CdmResponseType CdmSession::Decrypt(const CdmDecryptionParameters& params) {
|
||||
|
||||
if (status == NO_ERROR) {
|
||||
if (is_initial_decryption_) {
|
||||
policy_engine_->BeginDecryption();
|
||||
is_initial_decryption_ = false;
|
||||
is_initial_decryption_ = !policy_engine_->BeginDecryption();
|
||||
}
|
||||
has_decrypted_since_last_report_ = true;
|
||||
if (!is_usage_update_needed_) {
|
||||
|
||||
Reference in New Issue
Block a user