mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00
Remove unused variables in DVFP.
PiperOrigin-RevId: 529685584
This commit is contained in:
parent
78f20257bd
commit
c2da310718
@ -299,7 +299,7 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
|||||||
finalShaderProgramWrapper.setOnInputStreamProcessedListener(
|
finalShaderProgramWrapper.setOnInputStreamProcessedListener(
|
||||||
() -> {
|
() -> {
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
@InputType int currentInputType = unprocessedInputStreams.remove();
|
unprocessedInputStreams.remove();
|
||||||
if (latch != null) {
|
if (latch != null) {
|
||||||
latch.countDown();
|
latch.countDown();
|
||||||
}
|
}
|
||||||
@ -356,15 +356,12 @@ public final class DefaultVideoFrameProcessor implements VideoFrameProcessor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void registerInputStream(@InputType int inputType) {
|
public void registerInputStream(@InputType int inputType) {
|
||||||
@InputType int currentInputType;
|
|
||||||
synchronized (lock) {
|
synchronized (lock) {
|
||||||
if (unprocessedInputStreams.isEmpty()) {
|
if (unprocessedInputStreams.isEmpty()) {
|
||||||
textureManager = inputSwitcher.switchToInput(inputType);
|
textureManager = inputSwitcher.switchToInput(inputType);
|
||||||
unprocessedInputStreams.add(inputType);
|
unprocessedInputStreams.add(inputType);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
currentInputType = checkNotNull(unprocessedInputStreams.peek());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
checkNotNull(textureManager).signalEndOfCurrentInputStream();
|
checkNotNull(textureManager).signalEndOfCurrentInputStream();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user