mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Really fix the NPE in ExoPlayer.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176821463
This commit is contained in:
parent
91bcde033c
commit
5cd8869646
1 changed files with 6 additions and 4 deletions
|
|
@ -947,10 +947,12 @@ import java.io.IOException;
|
||||||
MediaPeriodHolder periodHolder =
|
MediaPeriodHolder periodHolder =
|
||||||
playingPeriodHolder != null ? playingPeriodHolder : loadingPeriodHolder;
|
playingPeriodHolder != null ? playingPeriodHolder : loadingPeriodHolder;
|
||||||
while (periodHolder != null) {
|
while (periodHolder != null) {
|
||||||
TrackSelection[] trackSelections = periodHolder.trackSelectorResult.selections.getAll();
|
if (periodHolder.trackSelectorResult != null) {
|
||||||
for (TrackSelection trackSelection : trackSelections) {
|
TrackSelection[] trackSelections = periodHolder.trackSelectorResult.selections.getAll();
|
||||||
if (trackSelection != null) {
|
for (TrackSelection trackSelection : trackSelections) {
|
||||||
trackSelection.onPlaybackSpeed(playbackSpeed);
|
if (trackSelection != null) {
|
||||||
|
trackSelection.onPlaybackSpeed(playbackSpeed);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
periodHolder = periodHolder.next;
|
periodHolder = periodHolder.next;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue