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