mirror of
https://github.com/samsonjs/media.git
synced 2026-03-25 09:25:53 +00:00
Fix calling extra registerInputStream and not handling EOS
PiperOrigin-RevId: 538796466
(cherry picked from commit a7cff4e0e3)
This commit is contained in:
parent
ebfb9cf402
commit
f1b942150c
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue