Allow decryption of unencrypted data before key has been retrieved

[ Merge of http://go/wvgerrit/25987 ]

Test: Added Cdm/WvCdmSessionSharingNoKeyTest to request_license_test.
      Verified by wv unit and integration tests.

b/28182987

Change-Id: I9039bc1fca83e2c1044c3af2f47f31dc4fb5c910
This commit is contained in:
Rahul Frias
2017-04-17 15:53:14 -07:00
parent 3d599197be
commit 0f374af4ab
2 changed files with 54 additions and 1 deletions

View File

@@ -379,7 +379,7 @@ CdmResponseType WvContentDecryptionModule::Decrypt(
cdm_engine->GetMetrics(),
cdm_engine_find_session_for_key_,
status);
if (!status) return KEY_NOT_FOUND_IN_SESSION;
if (!status && parameters.is_encrypted) return KEY_NOT_FOUND_IN_SESSION;
}
CdmResponseType sts;
M_TIME(