mirror of
https://github.com/androidx/media.git
synced 2025-05-04 06:00:37 +08:00
Fix potential NPE in ExoPlayerImplInternal
I'll have a more thorough refactor of some of this class fairly soon! ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=139451693
This commit is contained in:
parent
61c9c16954
commit
f57434006f
@ -918,7 +918,7 @@ import java.io.IOException;
|
|||||||
Object uid = loadingPeriodHolder.uid;
|
Object uid = loadingPeriodHolder.uid;
|
||||||
int index = timeline.getIndexOfPeriod(uid);
|
int index = timeline.getIndexOfPeriod(uid);
|
||||||
if (index == C.INDEX_UNSET) {
|
if (index == C.INDEX_UNSET) {
|
||||||
boolean restarted = attemptRestart(playingPeriodHolder.index, oldTimeline, timeline);
|
boolean restarted = attemptRestart(loadingPeriodHolder.index, oldTimeline, timeline);
|
||||||
finishSourceInfoRefresh(manifest, true);
|
finishSourceInfoRefresh(manifest, true);
|
||||||
if (!restarted) {
|
if (!restarted) {
|
||||||
// TODO: We should probably propagate an error here.
|
// TODO: We should probably propagate an error here.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user