Commit 363f2414 by tonihei Committed by Oliver Woodman

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
parent 555eb9d4
...@@ -1315,7 +1315,7 @@ import java.io.IOException; ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment