@Test public void encoderShouldNotSwapBuffersIfEof() { VideoDecoder decoder = create.videoDecoder().construct(); ISurface surface = create.surface().construct(); Encoder encoder = create.videoEncoder().with(surface).construct(); decoder.drain(0); decoder.setOutputSurface(surface); encoder.getInputCommandQueue().dequeue(); new DrainCommandHandler(encoder).handle(); verify(surface, never()).awaitNewImage(); verify(surface, never()).swapBuffers(); }
@Override public void handle() { plugin.drain(0); }
DrainCommandHandler implements ICommandHandler { @Override public void handle() { plugin.drain(0); } }
DrainCommandHandler implements ICommandHandler { @Override public void handle() { plugin.drain(0); } DrainCommandHandler(MediaCodecPlugin plugin); }
DrainCommandHandler implements ICommandHandler { @Override public void handle() { plugin.drain(0); } DrainCommandHandler(MediaCodecPlugin plugin); @Override void handle(); }
DrainCommandHandler implements ICommandHandler { @Override public void handle() { plugin.drain(0); } DrainCommandHandler(MediaCodecPlugin plugin); @Override void handle();  }