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
3f1b1b70
authored
Nov 11, 2022
by
samrobinson
Committed by
Ian Baker
Nov 14, 2022
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove checkNotNull from Transformer build method.
PiperOrigin-RevId: 487811903
parent
681de4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Transformer.java
library/transformer/src/main/java/com/google/android/exoplayer2/transformer/Transformer.java
View file @
3f1b1b70
...
@@ -402,16 +402,12 @@ public final class Transformer {
...
@@ -402,16 +402,12 @@ public final class Transformer {
/**
/**
* Builds a {@link Transformer} instance.
* Builds a {@link Transformer} instance.
*
*
* @throws NullPointerException If the {@link Context} has not been provided.
* @throws IllegalStateException If both audio and video have been removed (otherwise the output
* @throws IllegalStateException If both audio and video have been removed (otherwise the output
* would not contain any samples).
* would not contain any samples).
* @throws IllegalStateException If the muxer doesn't support the requested audio MIME type.
* @throws IllegalStateException If the muxer doesn't support the requested audio MIME type.
* @throws IllegalStateException If the muxer doesn't support the requested video MIME type.
* @throws IllegalStateException If the muxer doesn't support the requested video MIME type.
*/
*/
public
Transformer
build
()
{
public
Transformer
build
()
{
// TODO(huangdarwin): Remove this checkNotNull after deprecated {@link #setContext(Context)}
// is removed.
checkNotNull
(
context
);
if
(
transformationRequest
.
audioMimeType
!=
null
)
{
if
(
transformationRequest
.
audioMimeType
!=
null
)
{
checkSampleMimeType
(
transformationRequest
.
audioMimeType
);
checkSampleMimeType
(
transformationRequest
.
audioMimeType
);
}
}
...
...
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