mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +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 AudioAttributes audioAttributes;
|
||||||
private float audioVolume;
|
private float audioVolume;
|
||||||
private MediaSource mediaSource;
|
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.
|
* @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
|
@Override
|
||||||
public void addTextOutput(TextOutput listener) {
|
public void addTextOutput(TextOutput listener) {
|
||||||
|
if(currentCues != null) {
|
||||||
listener.onCues(currentCues);
|
listener.onCues(currentCues);
|
||||||
|
}
|
||||||
textOutputs.add(listener);
|
textOutputs.add(listener);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue