mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Remove unnecessary parameter and local variables
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=144427132
This commit is contained in:
parent
f194df1149
commit
060f2a5d6f
2 changed files with 6 additions and 10 deletions
|
|
@ -28,9 +28,8 @@ import com.google.android.exoplayer2.source.dash.manifest.RangedUri;
|
|||
|
||||
/**
|
||||
* @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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -185,10 +185,9 @@ public class DefaultDashChunkSource implements DashChunkSource {
|
|||
}
|
||||
if (pendingInitializationUri != null || pendingIndexUri != null) {
|
||||
// We have initialization and/or index requests to make.
|
||||
Chunk initializationChunk = newInitializationChunk(representationHolder, dataSource,
|
||||
out.chunk = newInitializationChunk(representationHolder, dataSource,
|
||||
trackSelection.getSelectedFormat(), trackSelection.getSelectionReason(),
|
||||
trackSelection.getSelectionData(), pendingInitializationUri, pendingIndexUri);
|
||||
out.chunk = initializationChunk;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -233,10 +232,9 @@ public class DefaultDashChunkSource implements DashChunkSource {
|
|||
}
|
||||
|
||||
int maxSegmentCount = Math.min(maxSegmentsPerLoad, lastAvailableSegmentNum - segmentNum + 1);
|
||||
Chunk nextMediaChunk = newMediaChunk(representationHolder, dataSource,
|
||||
trackSelection.getSelectedFormat(), trackSelection.getSelectionReason(),
|
||||
trackSelection.getSelectionData(), sampleFormat, segmentNum, maxSegmentCount);
|
||||
out.chunk = nextMediaChunk;
|
||||
out.chunk = newMediaChunk(representationHolder, dataSource, trackSelection.getSelectedFormat(),
|
||||
trackSelection.getSelectionReason(), trackSelection.getSelectionData(), sampleFormat,
|
||||
segmentNum, maxSegmentCount);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
@ -255,8 +253,7 @@ public class DefaultDashChunkSource implements DashChunkSource {
|
|||
if (representationHolder.segmentIndex == null) {
|
||||
SeekMap seekMap = initializationChunk.getSeekMap();
|
||||
if (seekMap != null) {
|
||||
representationHolder.segmentIndex = new DashWrappingSegmentIndex((ChunkIndex) seekMap,
|
||||
initializationChunk.dataSpec.uri.toString());
|
||||
representationHolder.segmentIndex = new DashWrappingSegmentIndex((ChunkIndex) seekMap);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue