Skip to content

Commit

Permalink
Fix indexing error
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Woodman committed Jun 26, 2017
1 parent 3fbfe29 commit 076a77e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public long selectTracks(TrackSelection[] selections, boolean[] mayRetainStreamF
streamResetFlags[i] = true;
// If there's still a chance of avoiding a seek, try and seek within the sample queue.
if (!seekRequired) {
SampleQueue sampleQueue = sampleQueues[i];
SampleQueue sampleQueue = sampleQueues[track];
sampleQueue.rewind();
seekRequired = !sampleQueue.advanceTo(positionUs, true, true)
&& sampleQueue.getReadIndex() != 0;
Expand Down

0 comments on commit 076a77e

Please sign in to comment.