ContainerMediaChunk.java
5.77 KB
-
Call init() on the extractor only once for each chunk. · a7e2b719
On retrying loading a chunk, the state of the extractor was reset due to a call to seek(). Prevent this call by only calling init() if no bytes were loaded. Also make the DefaultExtractorInput use the loading position not the original stream position so that its getPosition() method returns offsets relative to the start of the stream, which fixes a bug where the chunk index offsets would be relative to the wrong position if there was a retry while loading the chunk.
Oliver Woodman committed