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
acad64ca
authored
Jun 20, 2019
by
aquilescanta
Committed by
Oliver Woodman
Jun 21, 2019
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Rename FormatHolder.decryptionResourceIsProvided to FormatHolder.includesDrmSession
PiperOrigin-RevId: 254187403
parent
ae969397
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
8 deletions
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/FormatHolder.java
library/core/src/main/java/com/google/android/exoplayer2/audio/SimpleDecoderAudioRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
extensions/vp9/src/main/java/com/google/android/exoplayer2/ext/vp9/LibvpxVideoRenderer.java
View file @
acad64ca
...
...
@@ -499,7 +499,7 @@ public class LibvpxVideoRenderer extends BaseRenderer {
:
oldFormat
.
drmInitData
);
if
(
drmInitDataChanged
)
{
if
(
format
.
drmInitData
!=
null
)
{
if
(
formatHolder
.
decryptionResourceIsProvided
)
{
if
(
formatHolder
.
includesDrmSession
)
{
setSourceDrmSession
((
DrmSession
<
ExoMediaCrypto
>)
formatHolder
.
drmSession
);
}
else
{
if
(
drmSessionManager
==
null
)
{
...
...
library/core/src/main/java/com/google/android/exoplayer2/FormatHolder.java
View file @
acad64ca
...
...
@@ -23,13 +23,10 @@ import com.google.android.exoplayer2.drm.DrmSession;
*/
public
final
class
FormatHolder
{
/**
* Whether the object expected to populate {@link #format} is also expected to populate {@link
* #drmSession}.
*/
/** Whether the {@link #format} setter also sets the {@link #drmSession} field. */
// TODO: Remove once all Renderers and MediaSources have migrated to the new DRM model [Internal
// ref: b/129764794].
public
boolean
decryptionResourceIsProvided
;
public
boolean
includesDrmSession
;
/** An accompanying context for decrypting samples in the format. */
@Nullable
public
DrmSession
<?>
drmSession
;
...
...
library/core/src/main/java/com/google/android/exoplayer2/audio/SimpleDecoderAudioRenderer.java
View file @
acad64ca
...
...
@@ -665,7 +665,7 @@ public abstract class SimpleDecoderAudioRenderer extends BaseRenderer implements
if
(
drmInitDataChanged
)
{
if
(
inputFormat
.
drmInitData
!=
null
)
{
if
(
formatHolder
.
decryptionResourceIsProvided
)
{
if
(
formatHolder
.
includesDrmSession
)
{
setSourceDrmSession
((
DrmSession
<
ExoMediaCrypto
>)
formatHolder
.
drmSession
);
}
else
{
if
(
drmSessionManager
==
null
)
{
...
...
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
View file @
acad64ca
...
...
@@ -1200,7 +1200,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
!
Util
.
areEqual
(
newFormat
.
drmInitData
,
oldFormat
==
null
?
null
:
oldFormat
.
drmInitData
);
if
(
drmInitDataChanged
)
{
if
(
newFormat
.
drmInitData
!=
null
)
{
if
(
formatHolder
.
decryptionResourceIsProvided
)
{
if
(
formatHolder
.
includesDrmSession
)
{
setSourceDrmSession
((
DrmSession
<
FrameworkMediaCrypto
>)
formatHolder
.
drmSession
);
}
else
{
if
(
drmSessionManager
==
null
)
{
...
...
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