mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Update nullness annotations.
PiperOrigin-RevId: 252127811
This commit is contained in:
parent
3bff79f56f
commit
cc337a3e2d
4 changed files with 14 additions and 12 deletions
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package com.google.android.exoplayer2.source.chunk;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.upstream.DataSource;
|
||||
|
|
@ -58,7 +59,7 @@ public abstract class BaseMediaChunk extends MediaChunk {
|
|||
DataSpec dataSpec,
|
||||
Format trackFormat,
|
||||
int trackSelectionReason,
|
||||
Object trackSelectionData,
|
||||
@Nullable Object trackSelectionData,
|
||||
long startTimeUs,
|
||||
long endTimeUs,
|
||||
long clippedStartTimeUs,
|
||||
|
|
|
|||
|
|
@ -15,15 +15,15 @@
|
|||
*/
|
||||
package com.google.android.exoplayer2.source.chunk;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* Holds a chunk or an indication that the end of the stream has been reached.
|
||||
*/
|
||||
public final class ChunkHolder {
|
||||
|
||||
/**
|
||||
* The chunk.
|
||||
*/
|
||||
public Chunk chunk;
|
||||
/** The chunk. */
|
||||
@Nullable public Chunk chunk;
|
||||
|
||||
/**
|
||||
* Indicates that the end of the stream has been reached.
|
||||
|
|
|
|||
|
|
@ -60,8 +60,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
|
|||
|
||||
public final int primaryTrackType;
|
||||
|
||||
private final int[] embeddedTrackTypes;
|
||||
private final Format[] embeddedTrackFormats;
|
||||
@Nullable private final int[] embeddedTrackTypes;
|
||||
@Nullable private final Format[] embeddedTrackFormats;
|
||||
private final boolean[] embeddedTracksSelected;
|
||||
private final T chunkSource;
|
||||
private final SequenceableLoader.Callback<ChunkSampleStream<T>> callback;
|
||||
|
|
@ -104,8 +104,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
|
|||
@Deprecated
|
||||
public ChunkSampleStream(
|
||||
int primaryTrackType,
|
||||
int[] embeddedTrackTypes,
|
||||
Format[] embeddedTrackFormats,
|
||||
@Nullable int[] embeddedTrackTypes,
|
||||
@Nullable Format[] embeddedTrackFormats,
|
||||
T chunkSource,
|
||||
Callback<ChunkSampleStream<T>> callback,
|
||||
Allocator allocator,
|
||||
|
|
@ -140,8 +140,8 @@ public class ChunkSampleStream<T extends ChunkSource> implements SampleStream, S
|
|||
*/
|
||||
public ChunkSampleStream(
|
||||
int primaryTrackType,
|
||||
int[] embeddedTrackTypes,
|
||||
Format[] embeddedTrackFormats,
|
||||
@Nullable int[] embeddedTrackTypes,
|
||||
@Nullable Format[] embeddedTrackFormats,
|
||||
T chunkSource,
|
||||
Callback<ChunkSampleStream<T>> callback,
|
||||
Allocator allocator,
|
||||
|
|
|
|||
|
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
package com.google.android.exoplayer2.source.chunk;
|
||||
|
||||
import androidx.annotation.Nullable;
|
||||
import com.google.android.exoplayer2.C;
|
||||
import com.google.android.exoplayer2.Format;
|
||||
import com.google.android.exoplayer2.upstream.DataSource;
|
||||
|
|
@ -44,7 +45,7 @@ public abstract class MediaChunk extends Chunk {
|
|||
DataSpec dataSpec,
|
||||
Format trackFormat,
|
||||
int trackSelectionReason,
|
||||
Object trackSelectionData,
|
||||
@Nullable Object trackSelectionData,
|
||||
long startTimeUs,
|
||||
long endTimeUs,
|
||||
long chunkIndex) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue