mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Fixed nullability issues
This commit is contained in:
parent
edd237e196
commit
2c55f58938
1 changed files with 4 additions and 2 deletions
|
|
@ -92,7 +92,7 @@ public class SimpleExoPlayer implements ExoPlayer, Player.VideoComponent, Player
|
|||
private AudioAttributes audioAttributes;
|
||||
private float audioVolume;
|
||||
private MediaSource mediaSource;
|
||||
private List<Cue> currentCues;
|
||||
private @Nullable List<Cue> currentCues;
|
||||
|
||||
/**
|
||||
* @param renderersFactory A factory for creating {@link Renderer}s to be used by the instance.
|
||||
|
|
@ -503,7 +503,9 @@ public class SimpleExoPlayer implements ExoPlayer, Player.VideoComponent, Player
|
|||
|
||||
@Override
|
||||
public void addTextOutput(TextOutput listener) {
|
||||
listener.onCues(currentCues);
|
||||
if(currentCues != null) {
|
||||
listener.onCues(currentCues);
|
||||
}
|
||||
textOutputs.add(listener);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue