mirror of
https://github.com/samsonjs/media.git
synced 2026-04-01 10:35:48 +00:00
Remove needsContinueLoading from ExoPlayerImplInternal
The same effect can be achieved by checking the isLoading variable of ExoPlayerImplInternal because this variable is in almost all cases set simultaneously with loadingMediaPeriodHolder.needsContinueLoading. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158697948
This commit is contained in:
parent
58280f979e
commit
629edc2b95
1 changed files with 1 additions and 5 deletions
|
|
@ -1198,7 +1198,7 @@ import java.io.IOException;
|
|||
maybeUpdateLoadingPeriod();
|
||||
if (loadingPeriodHolder == null || loadingPeriodHolder.isFullyBuffered()) {
|
||||
setIsLoading(false);
|
||||
} else if (loadingPeriodHolder != null && loadingPeriodHolder.needsContinueLoading) {
|
||||
} else if (loadingPeriodHolder != null && !isLoading) {
|
||||
maybeContinueLoading();
|
||||
}
|
||||
|
||||
|
|
@ -1394,10 +1394,7 @@ import java.io.IOException;
|
|||
boolean continueLoading = loadControl.shouldContinueLoading(bufferedDurationUs);
|
||||
setIsLoading(continueLoading);
|
||||
if (continueLoading) {
|
||||
loadingPeriodHolder.needsContinueLoading = false;
|
||||
loadingPeriodHolder.mediaPeriod.continueLoading(loadingPeriodPositionUs);
|
||||
} else {
|
||||
loadingPeriodHolder.needsContinueLoading = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1506,7 +1503,6 @@ import java.io.IOException;
|
|||
public boolean prepared;
|
||||
public boolean hasEnabledTracks;
|
||||
public MediaPeriodHolder next;
|
||||
public boolean needsContinueLoading;
|
||||
public TrackSelectorResult trackSelectorResult;
|
||||
|
||||
private final Renderer[] renderers;
|
||||
|
|
|
|||
Loading…
Reference in a new issue