Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public final class VideoFrameReleaseHelper {

private final Context context;

private boolean vsyncSampleBuilt;
private boolean vsyncSamplerBuilt;
@Nullable private VSyncSampler vsyncSampler;
private boolean started;
@Nullable private Surface surface;
Expand Down Expand Up @@ -127,10 +127,11 @@ public void setChangeFrameRateStrategy(
public void onStarted() {
started = true;
resetAdjustment();
if (!vsyncSampleBuilt) {
if (!vsyncSamplerBuilt) {
vsyncSampler = VSyncSampler.maybeBuildInstance(context);
}
if (vsyncSampler != null) {
vsyncSamplerBuilt = true;
vsyncSampler.register();
}
updateSurfacePlaybackFrameRate(/* forceUpdate= */ false);
Expand Down