mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Fix bug in FakeChunkSource.
In order to retrieve the data set, the track selection index was used, but the data set is actually indexed by track group indices. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=167566049
This commit is contained in:
parent
bec5e6e2b2
commit
264f1c903d
1 changed files with 2 additions and 1 deletions
|
|
@ -92,7 +92,8 @@ public final class FakeChunkSource implements ChunkSource {
|
|||
Format selectedFormat = trackSelection.getSelectedFormat();
|
||||
long startTimeUs = dataSet.getStartTime(chunkIndex);
|
||||
long endTimeUs = startTimeUs + dataSet.getChunkDuration(chunkIndex);
|
||||
String uri = dataSet.getUri(trackSelection.getSelectedIndex());
|
||||
int trackGroupIndex = trackSelection.getIndexInTrackGroup(trackSelection.getSelectedIndex());
|
||||
String uri = dataSet.getUri(trackGroupIndex);
|
||||
Segment fakeDataChunk = dataSet.getData(uri).getSegments().get(chunkIndex);
|
||||
DataSpec dataSpec = new DataSpec(Uri.parse(uri), fakeDataChunk.byteOffset,
|
||||
fakeDataChunk.length, null);
|
||||
|
|
|
|||
Loading…
Reference in a new issue