Commit 8eee7c0d by olly Committed by Oliver Woodman

Remove apparently unused field

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=173871144
parent 8c793184
...@@ -64,7 +64,6 @@ import java.util.List; ...@@ -64,7 +64,6 @@ import java.util.List;
private CompositeSequenceableLoader sequenceableLoader; private CompositeSequenceableLoader sequenceableLoader;
private DashManifest manifest; private DashManifest manifest;
private int periodIndex; private int periodIndex;
private List<AdaptationSet> adaptationSets;
public DashMediaPeriod(int id, DashManifest manifest, int periodIndex, public DashMediaPeriod(int id, DashManifest manifest, int periodIndex,
DashChunkSource.Factory chunkSourceFactory, int minLoadableRetryCount, DashChunkSource.Factory chunkSourceFactory, int minLoadableRetryCount,
...@@ -81,8 +80,8 @@ import java.util.List; ...@@ -81,8 +80,8 @@ import java.util.List;
this.allocator = allocator; this.allocator = allocator;
sampleStreams = newSampleStreamArray(0); sampleStreams = newSampleStreamArray(0);
sequenceableLoader = new CompositeSequenceableLoader(sampleStreams); sequenceableLoader = new CompositeSequenceableLoader(sampleStreams);
adaptationSets = manifest.getPeriod(periodIndex).adaptationSets; Pair<TrackGroupArray, TrackGroupInfo[]> result =
Pair<TrackGroupArray, TrackGroupInfo[]> result = buildTrackGroups(adaptationSets); buildTrackGroups(manifest.getPeriod(periodIndex).adaptationSets);
trackGroups = result.first; trackGroups = result.first;
trackGroupInfos = result.second; trackGroupInfos = result.second;
} }
...@@ -90,7 +89,6 @@ import java.util.List; ...@@ -90,7 +89,6 @@ import java.util.List;
public void updateManifest(DashManifest manifest, int periodIndex) { public void updateManifest(DashManifest manifest, int periodIndex) {
this.manifest = manifest; this.manifest = manifest;
this.periodIndex = periodIndex; this.periodIndex = periodIndex;
adaptationSets = manifest.getPeriod(periodIndex).adaptationSets;
if (sampleStreams != null) { if (sampleStreams != null) {
for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) { for (ChunkSampleStream<DashChunkSource> sampleStream : sampleStreams) {
sampleStream.getChunkSource().updateManifest(manifest, periodIndex); sampleStream.getChunkSource().updateManifest(manifest, periodIndex);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment