mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Check for null entries in ConcatenatingMediaSource
We do this in the dynamic case, and I think we've seen a few GitHub issues where developers do this and don't understand what they've done wrong (because the failure comes later). ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=163688557
This commit is contained in:
parent
aeb2f620f1
commit
ecbcf09804
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,9 @@ public final class ConcatenatingMediaSource implements MediaSource {
|
||||||
* {@link MediaSource} instance to be present more than once in the array.
|
* {@link MediaSource} instance to be present more than once in the array.
|
||||||
*/
|
*/
|
||||||
public ConcatenatingMediaSource(boolean isRepeatOneAtomic, MediaSource... mediaSources) {
|
public ConcatenatingMediaSource(boolean isRepeatOneAtomic, MediaSource... mediaSources) {
|
||||||
|
for (MediaSource mediaSource : mediaSources) {
|
||||||
|
Assertions.checkNotNull(mediaSource);
|
||||||
|
}
|
||||||
this.mediaSources = mediaSources;
|
this.mediaSources = mediaSources;
|
||||||
this.isRepeatOneAtomic = isRepeatOneAtomic;
|
this.isRepeatOneAtomic = isRepeatOneAtomic;
|
||||||
timelines = new Timeline[mediaSources.length];
|
timelines = new Timeline[mediaSources.length];
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue