mirror of
https://github.com/samsonjs/media.git
synced 2026-03-27 09:45:47 +00:00
Fix NPE in FakeAdaptiveMediaPeriod.
The compositeSequenableLoader was causing NPEs in isLoading. Initializing it upfront prevents this problem and is in line with what we do in all real MediaPeriods. PiperOrigin-RevId: 275491511
This commit is contained in:
parent
694ccf424b
commit
4e667b899d
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ public class FakeAdaptiveMediaPeriod extends FakeMediaPeriod
|
|||
this.transferListener = transferListener;
|
||||
this.durationUs = durationUs;
|
||||
this.sampleStreams = newSampleStreamArray(0);
|
||||
this.sequenceableLoader = new CompositeSequenceableLoader(new SequenceableLoader[0]);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Reference in a new issue