Fix calling extra registerInputStream and not handling EOS

PiperOrigin-RevId: 538796466
This commit is contained in:
claincly 2023-06-08 15:43:37 +00:00 committed by Tofunmi Adigun-Hameed
parent 53c174f047
commit a7cff4e0e3

View File

@ -350,7 +350,6 @@ public final class DefaultVideoFrameProcessorVideoFrameRenderingTest {
checkNotNull(defaultVideoFrameProcessor).registerInputStream(INPUT_TYPE_SURFACE);
defaultVideoFrameProcessor.setInputFrameInfo(
new FrameInfo.Builder(WIDTH, HEIGHT).build());
defaultVideoFrameProcessor.registerInputFrame();
blankFrameProducer.produceBlankFramesAndQueueEndOfStream(inputPresentationTimesUs);
defaultVideoFrameProcessor.signalEndOfInput();
});
@ -398,7 +397,6 @@ public final class DefaultVideoFrameProcessorVideoFrameRenderingTest {
for (long presentationTimeUs : presentationTimesUs) {
outputListener.onOutputFrameAvailable(checkNotNull(blankTexture), presentationTimeUs);
}
outputListener.onCurrentOutputStreamEnded();
}
@Override
@ -426,8 +424,7 @@ public final class DefaultVideoFrameProcessorVideoFrameRenderingTest {
@Override
public void signalEndOfCurrentInputStream() {
// The tests don't end the input stream.
throw new UnsupportedOperationException();
checkNotNull(outputListener).onCurrentOutputStreamEnded();
}
@Override