Commit 5f7d9874 by claincly Committed by Tofunmi Adigun-Hameed

Fix calling extra registerInputStream and not handling EOS

PiperOrigin-RevId: 538796466
(cherry picked from commit 782b9535816df2709526b0031e5902c4f636c322)
parent 3de27852
......@@ -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
......
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