Limit SequenceAssetLoader variable scope.

All usages of these variables are within the SampleConsumerWrapper,
so limit them to that scope.

PiperOrigin-RevId: 568582645
This commit is contained in:
samrobinson 2023-09-26 10:34:14 -07:00 committed by Copybara-Service
parent 8b71712edc
commit c03a0fb66b

View File

@ -89,10 +89,7 @@ import java.util.concurrent.atomic.AtomicInteger;
private boolean trackCountReported; private boolean trackCountReported;
private boolean decodeAudio; private boolean decodeAudio;
private boolean decodeVideo; private boolean decodeVideo;
private long totalDurationUs;
private int sequenceLoopCount; private int sequenceLoopCount;
private boolean audioLoopingEnded;
private boolean videoLoopingEnded;
private int processedInputsSize; private int processedInputsSize;
private boolean released; private boolean released;
@ -354,6 +351,10 @@ import java.util.concurrent.atomic.AtomicInteger;
private final SampleConsumer sampleConsumer; private final SampleConsumer sampleConsumer;
private long totalDurationUs;
private boolean audioLoopingEnded;
private boolean videoLoopingEnded;
public SampleConsumerWrapper(SampleConsumer sampleConsumer) { public SampleConsumerWrapper(SampleConsumer sampleConsumer) {
this.sampleConsumer = sampleConsumer; this.sampleConsumer = sampleConsumer;
} }