mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add null check to ExoPlayerImpl.isTunnelingEnabled
`TrackSelectorResult.rendererConfigurations` can contain null elements: > A null entry indicates the corresponding renderer should be disabled. This wasn't caught by the nullness checker because `ExoPlayerImpl` is currently excluded from analysis. #minor-release Issue: google/ExoPlayer#10977 PiperOrigin-RevId: 508619169
This commit is contained in:
parent
6066ce43f6
commit
a6dfcf7799
2 changed files with 5 additions and 2 deletions
|
|
@ -35,6 +35,8 @@
|
||||||
parsing trak atoms.
|
parsing trak atoms.
|
||||||
* Correctly skip samples when seeking directly to a sync frame in fMP4
|
* Correctly skip samples when seeking directly to a sync frame in fMP4
|
||||||
([#10941](https://github.com/google/ExoPlayer/issues/10941)).
|
([#10941](https://github.com/google/ExoPlayer/issues/10941)).
|
||||||
|
* Fix `NullPointerException` when calling `ExoPlayer.isTunnelingEnabled`
|
||||||
|
([#10977](https://github.com/google/ExoPlayer/issues/10977)).
|
||||||
* Audio:
|
* Audio:
|
||||||
* Use the compressed audio format bitrate to calculate the min buffer size
|
* Use the compressed audio format bitrate to calculate the min buffer size
|
||||||
for `AudioTrack` in direct playbacks (passthrough).
|
for `AudioTrack` in direct playbacks (passthrough).
|
||||||
|
|
|
||||||
|
|
@ -1725,8 +1725,9 @@ import java.util.concurrent.TimeoutException;
|
||||||
@Override
|
@Override
|
||||||
public boolean isTunnelingEnabled() {
|
public boolean isTunnelingEnabled() {
|
||||||
verifyApplicationThread();
|
verifyApplicationThread();
|
||||||
for (RendererConfiguration config : playbackInfo.trackSelectorResult.rendererConfigurations) {
|
for (@Nullable
|
||||||
if (config.tunneling) {
|
RendererConfiguration config : playbackInfo.trackSelectorResult.rendererConfigurations) {
|
||||||
|
if (config != null && config.tunneling) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue