pull/696/head
Mattia Iavarone 6 years ago
parent 644addf463
commit 052b06a4bb
  1. 8
      cameraview/src/main/java/com/otaliastudios/cameraview/video/encoding/TextureMediaEncoder.java

@ -186,9 +186,10 @@ public class TextureMediaEncoder extends VideoMediaEncoder<TextureConfig> {
drainOutput(false);
// Then draw on the surface.
LOG.v("onEvent -",
LOG.i("onEvent -",
"frameNumber:", mFrameNumber,
"timestampUs:", frame.timestampUs(),
"hasReachedMaxLength:", hasReachedMaxLength(),
"- rendering.");
// 1. We must scale this matrix like GlCameraPreview does, because it might have some
@ -227,6 +228,11 @@ public class TextureMediaEncoder extends VideoMediaEncoder<TextureConfig> {
mWindow.setPresentationTime(frame.timestampNanos);
mWindow.swapBuffers();
mFramePool.recycle(frame);
LOG.i("onEvent -",
"frameNumber:", mFrameNumber,
"timestampUs:", frame.timestampUs(),
"hasReachedMaxLength:", hasReachedMaxLength(),
"- rendered.");
}
@Override

Loading…
Cancel
Save