diff --git a/library/core/src/main/java/com/google/android/exoplayer2/FormatHolder.java b/library/core/src/main/java/com/google/android/exoplayer2/FormatHolder.java index fcee2241e8..5da8d0f9f5 100644 --- a/library/core/src/main/java/com/google/android/exoplayer2/FormatHolder.java +++ b/library/core/src/main/java/com/google/android/exoplayer2/FormatHolder.java @@ -16,12 +16,24 @@ package com.google.android.exoplayer2; import androidx.annotation.Nullable; +import com.google.android.exoplayer2.drm.DecryptionResource; /** * Holds a {@link Format}. */ public final class FormatHolder { + /** + * Whether the object expected to populate {@link #format} is also expected to populate {@link + * #decryptionResource}. + */ + // TODO: Remove once all Renderers and MediaSources have migrated to the new DRM model [Internal + // ref: b/129764794]. + public boolean decryptionResourceIsProvided; + + /** An accompanying context for decrypting samples in the format. */ + @Nullable public DecryptionResource decryptionResource; + /** The held {@link Format}. */ - public @Nullable Format format; + @Nullable public Format format; }