mirror of
https://github.com/samsonjs/media.git
synced 2026-04-14 12:45:47 +00:00
Add a comment to record the reason for restoring licenses before releasing
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=157204373
This commit is contained in:
parent
3daa7a084f
commit
5092efe301
1 changed files with 2 additions and 0 deletions
|
|
@ -513,6 +513,8 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto> implements DrmSe
|
|||
}
|
||||
break;
|
||||
case MODE_RELEASE:
|
||||
// It's not necessary to restore the key (and open a session to do that) before releasing it
|
||||
// but this serves as a good sanity/fast-failure check.
|
||||
if (restoreKeys()) {
|
||||
postKeyRequest(offlineLicenseKeySetId, MediaDrm.KEY_TYPE_RELEASE);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue