Fix indexing error

This commit is contained in:
Oliver Woodman 2017-06-26 23:41:00 +01:00
parent 3fbfe29d27
commit 076a77e598

View File

@ -217,7 +217,7 @@ import java.util.Arrays;
streamResetFlags[i] = true; streamResetFlags[i] = true;
// If there's still a chance of avoiding a seek, try and seek within the sample queue. // If there's still a chance of avoiding a seek, try and seek within the sample queue.
if (!seekRequired) { if (!seekRequired) {
SampleQueue sampleQueue = sampleQueues[i]; SampleQueue sampleQueue = sampleQueues[track];
sampleQueue.rewind(); sampleQueue.rewind();
seekRequired = !sampleQueue.advanceTo(positionUs, true, true) seekRequired = !sampleQueue.advanceTo(positionUs, true, true)
&& sampleQueue.getReadIndex() != 0; && sampleQueue.getReadIndex() != 0;