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
de387723
authored
Feb 03, 2020
by
olly
Committed by
kim-vde
Feb 11, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add some missing nullness annotations
PiperOrigin-RevId: 292910310
parent
1a0afacf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java
View file @
de387723
...
@@ -136,8 +136,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
...
@@ -136,8 +136,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
*/
*/
@Nullable
public
final
DecoderInitializationException
fallbackDecoderInitializationException
;
@Nullable
public
final
DecoderInitializationException
fallbackDecoderInitializationException
;
public
DecoderInitializationException
(
Format
format
,
Throwable
cause
,
public
DecoderInitializationException
(
boolean
secureDecoderRequired
,
int
errorCode
)
{
Format
format
,
@Nullable
Throwable
cause
,
boolean
secureDecoderRequired
,
int
errorCode
)
{
this
(
this
(
"Decoder init failed: ["
+
errorCode
+
"], "
+
format
,
"Decoder init failed: ["
+
errorCode
+
"], "
+
format
,
cause
,
cause
,
...
@@ -150,7 +150,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
...
@@ -150,7 +150,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
public
DecoderInitializationException
(
public
DecoderInitializationException
(
Format
format
,
Format
format
,
Throwable
cause
,
@Nullable
Throwable
cause
,
boolean
secureDecoderRequired
,
boolean
secureDecoderRequired
,
MediaCodecInfo
mediaCodecInfo
)
{
MediaCodecInfo
mediaCodecInfo
)
{
this
(
this
(
...
@@ -165,7 +165,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
...
@@ -165,7 +165,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
private
DecoderInitializationException
(
private
DecoderInitializationException
(
String
message
,
String
message
,
Throwable
cause
,
@Nullable
Throwable
cause
,
String
mimeType
,
String
mimeType
,
boolean
secureDecoderRequired
,
boolean
secureDecoderRequired
,
@Nullable
MediaCodecInfo
mediaCodecInfo
,
@Nullable
MediaCodecInfo
mediaCodecInfo
,
...
@@ -193,7 +193,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
...
@@ -193,7 +193,8 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
}
}
@RequiresApi
(
21
)
@RequiresApi
(
21
)
private
static
String
getDiagnosticInfoV21
(
Throwable
cause
)
{
@Nullable
private
static
String
getDiagnosticInfoV21
(
@Nullable
Throwable
cause
)
{
if
(
cause
instanceof
CodecException
)
{
if
(
cause
instanceof
CodecException
)
{
return
((
CodecException
)
cause
).
getDiagnosticInfo
();
return
((
CodecException
)
cause
).
getDiagnosticInfo
();
}
}
...
...
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