mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08: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
@ -513,6 +513,8 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto> implements DrmSe
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MODE_RELEASE:
|
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()) {
|
if (restoreKeys()) {
|
||||||
postKeyRequest(offlineLicenseKeySetId, MediaDrm.KEY_TYPE_RELEASE);
|
postKeyRequest(offlineLicenseKeySetId, MediaDrm.KEY_TYPE_RELEASE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user