pull/696/head
Mattia Iavarone 6 years ago
parent f4eda8f661
commit d54cfbbead
  1. 2
      cameraview/src/main/java/com/otaliastudios/cameraview/video/encoding/MediaEncoder.java
  2. 4
      cameraview/src/main/java/com/otaliastudios/cameraview/video/encoding/TextureMediaEncoder.java

@ -407,7 +407,7 @@ public abstract class MediaEncoder {
} }
while (true) { while (true) {
int encoderStatus = mMediaCodec.dequeueOutputBuffer(mBufferInfo, OUTPUT_TIMEOUT_US); int encoderStatus = mMediaCodec.dequeueOutputBuffer(mBufferInfo, OUTPUT_TIMEOUT_US);
LOG.v(mName, "DRAINING - Got status:", encoderStatus); LOG.i(mName, "DRAINING - Got status:", encoderStatus);
if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) { if (encoderStatus == MediaCodec.INFO_TRY_AGAIN_LATER) {
// no output available yet // no output available yet
if (!drainAll) break; // out of while if (!drainAll) break; // out of while

@ -186,7 +186,7 @@ public class TextureMediaEncoder extends VideoMediaEncoder<TextureConfig> {
drainOutput(false); drainOutput(false);
// Then draw on the surface. // Then draw on the surface.
LOG.v("onEvent -", LOG.i("onEvent -",
"frameNumber:", mFrameNumber, "frameNumber:", mFrameNumber,
"timestampUs:", frame.timestampUs(), "timestampUs:", frame.timestampUs(),
"hasReachedMaxLength:", hasReachedMaxLength(), "hasReachedMaxLength:", hasReachedMaxLength(),
@ -228,7 +228,7 @@ public class TextureMediaEncoder extends VideoMediaEncoder<TextureConfig> {
mWindow.setPresentationTime(frame.timestampNanos); mWindow.setPresentationTime(frame.timestampNanos);
mWindow.swapBuffers(); mWindow.swapBuffers();
mFramePool.recycle(frame); mFramePool.recycle(frame);
LOG.v("onEvent -", LOG.i("onEvent -",
"frameNumber:", mFrameNumber, "frameNumber:", mFrameNumber,
"timestampUs:", frame.timestampUs(), "timestampUs:", frame.timestampUs(),
"hasReachedMaxLength:", hasReachedMaxLength(), "hasReachedMaxLength:", hasReachedMaxLength(),

Loading…
Cancel
Save