mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Fix check for last period index in ExoPlayerImplInternal
The if clause was never executed because nextLoadingPeriodIndex is set to C.INDEX_UNSET instead of loadingPeriodIndex + 1. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=159948661
This commit is contained in:
parent
555eb9d423
commit
363f2414d1
1 changed files with 1 additions and 1 deletions
|
|
@ -1315,7 +1315,7 @@ import java.io.IOException;
|
||||||
repeatMode);
|
repeatMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (newLoadingPeriodIndex >= timeline.getPeriodCount()) {
|
if (newLoadingPeriodIndex == C.INDEX_UNSET) {
|
||||||
// The next period is not available yet.
|
// The next period is not available yet.
|
||||||
mediaSource.maybeThrowSourceInfoRefreshError();
|
mediaSource.maybeThrowSourceInfoRefreshError();
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue