Commit b81ac8cd by Oliver Woodman

Added robustness for chunk removal.

Issue #812
parent 42416b82
......@@ -219,7 +219,7 @@ public class ChunkSampleSource implements SampleSource, SampleSourceReader, Load
boolean haveSamples = !sampleQueue.isEmpty();
BaseMediaChunk currentChunk = mediaChunks.getFirst();
while (haveSamples && mediaChunks.size() > 1
&& mediaChunks.get(1).getFirstSampleIndex() == sampleQueue.getReadIndex()) {
&& mediaChunks.get(1).getFirstSampleIndex() <= sampleQueue.getReadIndex()) {
mediaChunks.removeFirst();
currentChunk = mediaChunks.getFirst();
}
......
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