mirror of
https://github.com/samsonjs/media.git
synced 2026-04-09 11:55:46 +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 =
|
||||
playingPeriodHolder != null ? playingPeriodHolder : loadingPeriodHolder;
|
||||
while (periodHolder != null) {
|
||||
TrackSelection[] trackSelections = periodHolder.trackSelectorResult.selections.getAll();
|
||||
for (TrackSelection trackSelection : trackSelections) {
|
||||
if (trackSelection != null) {
|
||||
trackSelection.onPlaybackSpeed(playbackSpeed);
|
||||
if (periodHolder.trackSelectorResult != null) {
|
||||
TrackSelection[] trackSelections = periodHolder.trackSelectorResult.selections.getAll();
|
||||
for (TrackSelection trackSelection : trackSelections) {
|
||||
if (trackSelection != null) {
|
||||
trackSelection.onPlaybackSpeed(playbackSpeed);
|
||||
}
|
||||
}
|
||||
}
|
||||
periodHolder = periodHolder.next;
|
||||
|
|
|
|||
Loading…
Reference in a new issue