Commit fa669d80 by claincly Committed by Tofunmi Adigun-Hameed

Remove unused variables in DVFP.

PiperOrigin-RevId: 529685584
parent 9f2d2005
......@@ -297,7 +297,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
finalShaderProgramWrapper.setOnInputStreamProcessedListener(
() -> {
synchronized (lock) {
@InputType int currentInputType = unprocessedInputStreams.remove();
unprocessedInputStreams.remove();
if (latch != null) {
latch.countDown();
}
......@@ -354,15 +354,12 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
@Override
public void registerInputStream(@InputType int inputType) {
@InputType int currentInputType;
synchronized (lock) {
if (unprocessedInputStreams.isEmpty()) {
textureManager = inputSwitcher.switchToInput(inputType);
unprocessedInputStreams.add(inputType);
return;
}
currentInputType = checkNotNull(unprocessedInputStreams.peek());
}
checkNotNull(textureManager).signalEndOfCurrentInputStream();
......
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