Fix for b/8594163 [SelectContentKey(): No key matches key id]
...when playing clear parts of encrypted content. Change-Id: I5fb027d22212f07b43deced2da77c98cb3800e7f
This commit is contained in:
@@ -138,12 +138,14 @@ CdmResponseType CdmSession::Decrypt(bool is_encrypted,
|
||||
return UNKNOWN_ERROR;
|
||||
|
||||
// Check if key needs to be selected
|
||||
if (key_id_.compare(key_id) != 0) {
|
||||
if (crypto_session_->SelectKey(key_id)) {
|
||||
key_id_ = key_id;
|
||||
}
|
||||
else {
|
||||
return UNKNOWN_ERROR;
|
||||
if (is_encrypted) {
|
||||
if (key_id_.compare(key_id) != 0) {
|
||||
if (crypto_session_->SelectKey(key_id)) {
|
||||
key_id_ = key_id;
|
||||
}
|
||||
else {
|
||||
return UNKNOWN_ERROR;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user