mirror of
https://github.com/androidx/media.git
synced 2025-05-10 00:59:51 +08:00
Remove FormatHolder.includesDrmSession
With the Renderer migration, this is officially unnecessary, and should always be true for supported encrypted content. PiperOrigin-RevId: 295584542
This commit is contained in:
parent
bd02812430
commit
3591562364
@ -23,11 +23,6 @@ import com.google.android.exoplayer2.drm.DrmSession;
|
|||||||
*/
|
*/
|
||||||
public final class FormatHolder {
|
public final class FormatHolder {
|
||||||
|
|
||||||
/** Whether the {@link #format} setter also sets the {@link #drmSession} field. */
|
|
||||||
// TODO: Remove once all Renderers and MediaSources have migrated to the new DRM model [Internal
|
|
||||||
// ref: b/129764794].
|
|
||||||
public boolean includesDrmSession;
|
|
||||||
|
|
||||||
/** An accompanying context for decrypting samples in the format. */
|
/** An accompanying context for decrypting samples in the format. */
|
||||||
@Nullable public DrmSession<?> drmSession;
|
@Nullable public DrmSession<?> drmSession;
|
||||||
|
|
||||||
@ -36,7 +31,6 @@ public final class FormatHolder {
|
|||||||
|
|
||||||
/** Clears the holder. */
|
/** Clears the holder. */
|
||||||
public void clear() {
|
public void clear() {
|
||||||
includesDrmSession = false;
|
|
||||||
drmSession = null;
|
drmSession = null;
|
||||||
format = null;
|
format = null;
|
||||||
}
|
}
|
||||||
|
@ -783,7 +783,6 @@ public class SampleQueue implements TrackOutput {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@Nullable DrmInitData newDrmInitData = newFormat.drmInitData;
|
@Nullable DrmInitData newDrmInitData = newFormat.drmInitData;
|
||||||
outputFormatHolder.includesDrmSession = true;
|
|
||||||
outputFormatHolder.drmSession = currentDrmSession;
|
outputFormatHolder.drmSession = currentDrmSession;
|
||||||
if (!isFirstFormat && Util.areEqual(oldDrmInitData, newDrmInitData)) {
|
if (!isFirstFormat && Util.areEqual(oldDrmInitData, newDrmInitData)) {
|
||||||
// Nothing to do.
|
// Nothing to do.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user