HLS AAC fix

Fixes issue where an NPE occurs when RollingSampleBuffer is created
with a null Allocator.
This commit is contained in:
Kelly Schrock 2015-05-21 20:35:09 -05:00
parent 763d68f26c
commit 08d337365e

View File

@ -61,7 +61,6 @@ public final class HlsExtractorWrapper implements ExtractorOutput {
this.extractor = extractor; this.extractor = extractor;
this.shouldSpliceIn = shouldSpliceIn; this.shouldSpliceIn = shouldSpliceIn;
sampleQueues = new SparseArray<DefaultTrackOutput>(); sampleQueues = new SparseArray<DefaultTrackOutput>();
extractor.init(this);
} }
/** /**
@ -71,6 +70,7 @@ public final class HlsExtractorWrapper implements ExtractorOutput {
*/ */
public void init(Allocator allocator) { public void init(Allocator allocator) {
this.allocator = allocator; this.allocator = allocator;
this.extractor.init(this);
} }
/** /**