Fix exception message
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=190215051
This commit is contained in:
parent
432d746d82
commit
416e05f58c
@ -104,7 +104,7 @@ import java.util.IdentityHashMap;
|
||||
if (i == 0) {
|
||||
positionUs = selectPositionUs;
|
||||
} else if (selectPositionUs != positionUs) {
|
||||
throw new IllegalStateException("Children enabled at different positions");
|
||||
throw new IllegalStateException("Children enabled at different positions.");
|
||||
}
|
||||
boolean periodEnabled = false;
|
||||
for (int j = 0; j < selections.length; j++) {
|
||||
@ -161,7 +161,7 @@ import java.util.IdentityHashMap;
|
||||
// Periods other than the first one are not allowed to report discontinuities.
|
||||
for (int i = 1; i < periods.length; i++) {
|
||||
if (periods[i].readDiscontinuity() != C.TIME_UNSET) {
|
||||
throw new IllegalStateException("Child reported discontinuity");
|
||||
throw new IllegalStateException("Child reported discontinuity.");
|
||||
}
|
||||
}
|
||||
// It must be possible to seek enabled periods to the new position, if there is one.
|
||||
@ -169,7 +169,7 @@ import java.util.IdentityHashMap;
|
||||
for (MediaPeriod enabledPeriod : enabledPeriods) {
|
||||
if (enabledPeriod != periods[0]
|
||||
&& enabledPeriod.seekToUs(positionUs) != positionUs) {
|
||||
throw new IllegalStateException("Children seeked to different positions");
|
||||
throw new IllegalStateException("Unexpected child seekToUs result.");
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -187,7 +187,7 @@ import java.util.IdentityHashMap;
|
||||
// Additional periods must seek to the same position.
|
||||
for (int i = 1; i < enabledPeriods.length; i++) {
|
||||
if (enabledPeriods[i].seekToUs(positionUs) != positionUs) {
|
||||
throw new IllegalStateException("Children seeked to different positions");
|
||||
throw new IllegalStateException("Unexpected child seekToUs result.");
|
||||
}
|
||||
}
|
||||
return positionUs;
|
||||
|
Loading…
x
Reference in New Issue
Block a user