mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove checkNotNull from Transformer build method.
PiperOrigin-RevId: 487811903
This commit is contained in:
parent
681de4e763
commit
3f1b1b70ed
1 changed files with 0 additions and 4 deletions
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue