mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Fix ChainingGlTextureProcessorListener field name.
PiperOrigin-RevId: 466735554
(cherry picked from commit 4c4f7d73b4)
This commit is contained in:
parent
da10c96229
commit
65d73e142f
1 changed files with 4 additions and 4 deletions
|
|
@ -41,7 +41,7 @@ import java.util.Queue;
|
|||
private final Queue<Pair<TextureInfo, Long>> availableFrames;
|
||||
|
||||
@GuardedBy("this")
|
||||
private int nextGlTextureProcessorInputCapacity;
|
||||
private int consumingGlTextureProcessorInputCapacity;
|
||||
|
||||
/**
|
||||
* Creates a new instance.
|
||||
|
|
@ -69,7 +69,7 @@ import java.util.Queue;
|
|||
public synchronized void onReadyToAcceptInputFrame() {
|
||||
@Nullable Pair<TextureInfo, Long> pendingFrame = availableFrames.poll();
|
||||
if (pendingFrame == null) {
|
||||
nextGlTextureProcessorInputCapacity++;
|
||||
consumingGlTextureProcessorInputCapacity++;
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -94,12 +94,12 @@ import java.util.Queue;
|
|||
@Override
|
||||
public synchronized void onOutputFrameAvailable(
|
||||
TextureInfo outputTexture, long presentationTimeUs) {
|
||||
if (nextGlTextureProcessorInputCapacity > 0) {
|
||||
if (consumingGlTextureProcessorInputCapacity > 0) {
|
||||
frameProcessingTaskExecutor.submit(
|
||||
() ->
|
||||
consumingGlTextureProcessor.queueInputFrame(
|
||||
/* inputTexture= */ outputTexture, presentationTimeUs));
|
||||
nextGlTextureProcessorInputCapacity--;
|
||||
consumingGlTextureProcessorInputCapacity--;
|
||||
} else {
|
||||
availableFrames.add(new Pair<>(outputTexture, presentationTimeUs));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue