Commit 060f2a5d by eguven Committed by Oliver Woodman

Remove unnecessary parameter and local variables

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=144427132
parent f194df11
...@@ -28,9 +28,8 @@ import com.google.android.exoplayer2.source.dash.manifest.RangedUri; ...@@ -28,9 +28,8 @@ import com.google.android.exoplayer2.source.dash.manifest.RangedUri;
/** /**
* @param chunkIndex The {@link ChunkIndex} to wrap. * @param chunkIndex The {@link ChunkIndex} to wrap.
* @param uri The URI where the data is located.
*/ */
public DashWrappingSegmentIndex(ChunkIndex chunkIndex, String uri) { public DashWrappingSegmentIndex(ChunkIndex chunkIndex) {
this.chunkIndex = chunkIndex; this.chunkIndex = chunkIndex;
} }
......
...@@ -185,10 +185,9 @@ public class DefaultDashChunkSource implements DashChunkSource { ...@@ -185,10 +185,9 @@ public class DefaultDashChunkSource implements DashChunkSource {
} }
if (pendingInitializationUri != null || pendingIndexUri != null) { if (pendingInitializationUri != null || pendingIndexUri != null) {
// We have initialization and/or index requests to make. // We have initialization and/or index requests to make.
Chunk initializationChunk = newInitializationChunk(representationHolder, dataSource, out.chunk = newInitializationChunk(representationHolder, dataSource,
trackSelection.getSelectedFormat(), trackSelection.getSelectionReason(), trackSelection.getSelectedFormat(), trackSelection.getSelectionReason(),
trackSelection.getSelectionData(), pendingInitializationUri, pendingIndexUri); trackSelection.getSelectionData(), pendingInitializationUri, pendingIndexUri);
out.chunk = initializationChunk;
return; return;
} }
...@@ -233,10 +232,9 @@ public class DefaultDashChunkSource implements DashChunkSource { ...@@ -233,10 +232,9 @@ public class DefaultDashChunkSource implements DashChunkSource {
} }
int maxSegmentCount = Math.min(maxSegmentsPerLoad, lastAvailableSegmentNum - segmentNum + 1); int maxSegmentCount = Math.min(maxSegmentsPerLoad, lastAvailableSegmentNum - segmentNum + 1);
Chunk nextMediaChunk = newMediaChunk(representationHolder, dataSource, out.chunk = newMediaChunk(representationHolder, dataSource, trackSelection.getSelectedFormat(),
trackSelection.getSelectedFormat(), trackSelection.getSelectionReason(), trackSelection.getSelectionReason(), trackSelection.getSelectionData(), sampleFormat,
trackSelection.getSelectionData(), sampleFormat, segmentNum, maxSegmentCount); segmentNum, maxSegmentCount);
out.chunk = nextMediaChunk;
} }
@Override @Override
...@@ -255,8 +253,7 @@ public class DefaultDashChunkSource implements DashChunkSource { ...@@ -255,8 +253,7 @@ public class DefaultDashChunkSource implements DashChunkSource {
if (representationHolder.segmentIndex == null) { if (representationHolder.segmentIndex == null) {
SeekMap seekMap = initializationChunk.getSeekMap(); SeekMap seekMap = initializationChunk.getSeekMap();
if (seekMap != null) { if (seekMap != null) {
representationHolder.segmentIndex = new DashWrappingSegmentIndex((ChunkIndex) seekMap, representationHolder.segmentIndex = new DashWrappingSegmentIndex((ChunkIndex) seekMap);
initializationChunk.dataSpec.uri.toString());
} }
} }
} }
......
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