mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix acquisition of placeholder sessions
Issue:#4867 PiperOrigin-RevId: 272698404
This commit is contained in:
parent
f326f7110f
commit
69cf7d130e
1 changed files with 3 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ import java.lang.annotation.Documented;
|
|||
import java.lang.annotation.Retention;
|
||||
import java.lang.annotation.RetentionPolicy;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
|
@ -483,7 +484,8 @@ public class DefaultDrmSessionManager<T extends ExoMediaCrypto>
|
|||
maybeCreateMediaDrmHandler(playbackLooper);
|
||||
if (placeholderDrmSession == null) {
|
||||
DefaultDrmSession<T> placeholderDrmSession =
|
||||
createNewDefaultSession(/* schemeDatas= */ null, /* isPlaceholderSession= */ true);
|
||||
createNewDefaultSession(
|
||||
/* schemeDatas= */ Collections.emptyList(), /* isPlaceholderSession= */ true);
|
||||
sessions.add(placeholderDrmSession);
|
||||
this.placeholderDrmSession = placeholderDrmSession;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue