Register newly split modules

PiperOrigin-RevId: 405379511
This commit is contained in:
olly 2021-10-25 13:56:56 +01:00 committed by Oliver Woodman
parent 988a55db9d
commit 2b97455a8c
2 changed files with 10 additions and 0 deletions

View File

@ -19,6 +19,7 @@ import android.net.Uri;
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.util.Assertions;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
@ -30,6 +31,10 @@ import java.util.Map;
/** Defines a region of data in a resource. */
public final class DataSpec {
static {
ExoPlayerLibraryInfo.registerModule("goog.exo.datasource");
}
/**
* Builds {@link DataSpec} instances.
*

View File

@ -18,6 +18,7 @@ package com.google.android.exoplayer2.decoder;
import androidx.annotation.IntDef;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.C;
import com.google.android.exoplayer2.ExoPlayerLibraryInfo;
import com.google.android.exoplayer2.Format;
import java.lang.annotation.Documented;
import java.lang.annotation.Retention;
@ -28,6 +29,10 @@ import org.checkerframework.checker.nullness.qual.EnsuresNonNull;
/** Holds input for a decoder. */
public class DecoderInputBuffer extends Buffer {
static {
ExoPlayerLibraryInfo.registerModule("goog.exo.decoder");
}
/**
* Thrown when an attempt is made to write into a {@link DecoderInputBuffer} whose {@link
* #bufferReplacementMode} is {@link #BUFFER_REPLACEMENT_MODE_DISABLED} and who {@link #data}