Commit 5092efe3 by eguven Committed by Oliver Woodman

Add a comment to record the reason for restoring licenses before releasing

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=157204373
parent 3daa7a08
...@@ -513,6 +513,8 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto> implements DrmSe ...@@ -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);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment