mirror of
https://github.com/samsonjs/media.git
synced 2026-04-13 12:35:48 +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);
|
||||
}
|
||||
|
||||
if (newLoadingPeriodIndex >= timeline.getPeriodCount()) {
|
||||
if (newLoadingPeriodIndex == C.INDEX_UNSET) {
|
||||
// The next period is not available yet.
|
||||
mediaSource.maybeThrowSourceInfoRefreshError();
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue