Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
fe013979
authored
Apr 02, 2020
by
bachinger
Committed by
Oliver Woodman
Apr 06, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
use an unmodifiable map with a copy of the license request headers
PiperOrigin-RevId: 304356504
parent
205adb7f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/MediaItem.java
library/core/src/main/java/com/google/android/exoplayer2/MediaItem.java
View file @
fe013979
...
@@ -152,7 +152,7 @@ public final class MediaItem {
...
@@ -152,7 +152,7 @@ public final class MediaItem {
@Nullable
Map
<
String
,
String
>
licenseRequestHeaders
)
{
@Nullable
Map
<
String
,
String
>
licenseRequestHeaders
)
{
this
.
drmLicenseRequestHeaders
=
this
.
drmLicenseRequestHeaders
=
licenseRequestHeaders
!=
null
&&
!
licenseRequestHeaders
.
isEmpty
()
licenseRequestHeaders
!=
null
&&
!
licenseRequestHeaders
.
isEmpty
()
?
licenseRequestHeaders
?
Collections
.
unmodifiableMap
(
new
HashMap
<>(
licenseRequestHeaders
))
:
Collections
.
emptyMap
();
:
Collections
.
emptyMap
();
return
this
;
return
this
;
}
}
...
@@ -344,7 +344,7 @@ public final class MediaItem {
...
@@ -344,7 +344,7 @@ public final class MediaItem {
List
<
Integer
>
drmSessionForClearTypes
)
{
List
<
Integer
>
drmSessionForClearTypes
)
{
this
.
uuid
=
uuid
;
this
.
uuid
=
uuid
;
this
.
licenseUri
=
licenseUri
;
this
.
licenseUri
=
licenseUri
;
this
.
requestHeaders
=
Collections
.
unmodifiableMap
(
new
HashMap
<>(
requestHeaders
))
;
this
.
requestHeaders
=
requestHeaders
;
this
.
multiSession
=
multiSession
;
this
.
multiSession
=
multiSession
;
this
.
playClearContentWithoutKey
=
playClearContentWithoutKey
;
this
.
playClearContentWithoutKey
=
playClearContentWithoutKey
;
this
.
sessionForClearTypes
=
drmSessionForClearTypes
;
this
.
sessionForClearTypes
=
drmSessionForClearTypes
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment