Stop rejecting frames later in ExternalTextureManager

If the task executor handles an available frame (task submitted in the
SurfaceTexture listener) between the call to registerInputFrame() and
the execution of the task submitted in the method (in this CL), it
should be rejected.

PiperOrigin-RevId: 672903756
This commit is contained in:
kimvde 2024-09-10 04:23:56 -07:00 committed by Copybara-Service
parent 327b1c8ad8
commit a53ea621bb

View File

@ -249,7 +249,7 @@ import org.checkerframework.checker.nullness.qual.MonotonicNonNull;
if (!repeatLastRegisteredFrame) {
pendingFrames.add(frame);
}
shouldRejectIncomingFrames = false;
videoFrameProcessingTaskExecutor.submit(() -> shouldRejectIncomingFrames = false);
}
/**