Skip to content

Commit

Permalink
Fix logs
Browse files Browse the repository at this point in the history
  • Loading branch information
azaat committed Nov 14, 2020
1 parent 130c7ee commit 2d62907
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2177,12 +2177,17 @@ private void closePictureImageReader() {
private void closeVideoFrameImageReader() {
if (videoFrameImageReader != null) {
videoFrameImageReader.close();
Log.i(TAG, "Closed video image reader");
if (MyDebug.LOG) {
Log.d(TAG, "Closed video image reader");
}
videoFrameImageReader = null;
}
}

private void createVideoFrameImageReader() {
if (MyDebug.LOG) {
Log.d(TAG, "Create video frame image reader for capture session");
}
videoFrameImageReader = ImageReader.newInstance(preview_width, preview_height, ImageFormat.YUV_420_888, 2);
videoFrameImageReader.setOnImageAvailableListener(new OnVideoFrameImageAvailableListener(), null);
}
Expand Down Expand Up @@ -5069,7 +5074,6 @@ private List<Surface> getCaptureSessionOutputSurfaces(
if(supports_photo_video_recording && wantVideoImuRecording) {
// Requested synchronized video and IMU recording
createVideoFrameImageReader();
Log.d(TAG, "created video frame image reader for capture session");
}

if( supports_photo_video_recording && !want_video_high_speed && wantPhotoVideoRecording && wantVideoImuRecording ) {
Expand Down

0 comments on commit 2d62907

Please sign in to comment.