mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
use an unmodifiable map with a copy of the license request headers
PiperOrigin-RevId: 304356504
This commit is contained in:
parent
205adb7f8d
commit
fe013979c2
1 changed files with 2 additions and 2 deletions
|
|
@ -152,7 +152,7 @@ public final class MediaItem {
|
|||
@Nullable Map<String, String> licenseRequestHeaders) {
|
||||
this.drmLicenseRequestHeaders =
|
||||
licenseRequestHeaders != null && !licenseRequestHeaders.isEmpty()
|
||||
? licenseRequestHeaders
|
||||
? Collections.unmodifiableMap(new HashMap<>(licenseRequestHeaders))
|
||||
: Collections.emptyMap();
|
||||
return this;
|
||||
}
|
||||
|
|
@ -344,7 +344,7 @@ public final class MediaItem {
|
|||
List<Integer> drmSessionForClearTypes) {
|
||||
this.uuid = uuid;
|
||||
this.licenseUri = licenseUri;
|
||||
this.requestHeaders = Collections.unmodifiableMap(new HashMap<>(requestHeaders));
|
||||
this.requestHeaders = requestHeaders;
|
||||
this.multiSession = multiSession;
|
||||
this.playClearContentWithoutKey = playClearContentWithoutKey;
|
||||
this.sessionForClearTypes = drmSessionForClearTypes;
|
||||
|
|
|
|||
Loading…
Reference in a new issue