mirror of
https://github.com/samsonjs/media.git
synced 2026-03-29 10:05:48 +00:00
Guard against null TrackSelections in updateTrackSelectionPlaybackSpeed.
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=176629070
This commit is contained in:
parent
e575af3ac3
commit
4193a1f705
1 changed files with 3 additions and 1 deletions
|
|
@ -941,7 +941,9 @@ import java.io.IOException;
|
|||
while (periodHolder != null) {
|
||||
TrackSelection[] trackSelections = periodHolder.trackSelectorResult.selections.getAll();
|
||||
for (TrackSelection trackSelection : trackSelections) {
|
||||
trackSelection.onPlaybackSpeed(playbackSpeed);
|
||||
if (trackSelection != null) {
|
||||
trackSelection.onPlaybackSpeed(playbackSpeed);
|
||||
}
|
||||
}
|
||||
periodHolder = periodHolder.next;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue