Commit 79a846eb by aquilescanta Committed by Oliver Woodman

Fix check in placeholder session acquisition

PiperOrigin-RevId: 327223824
parent 41e6577d
......@@ -551,7 +551,7 @@ public class DefaultDrmSessionManager implements DrmSessionManager {
// Avoid attaching a session to sparse formats.
if (avoidPlaceholderDrmSessions
|| Util.linearSearch(useDrmSessionsForClearContentTrackTypes, trackType) == C.INDEX_UNSET
|| exoMediaDrm.getExoMediaCryptoType() == null) {
|| UnsupportedMediaCrypto.class.equals(exoMediaDrm.getExoMediaCryptoType())) {
return null;
}
if (placeholderDrmSession == null) {
......
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