Skip to content

Commit

Permalink
Added closeCaptureSession() to stopVideoRecording in Camera.java to f…
Browse files Browse the repository at this point in the history
…ix an Android 6 crash (flutter#3336)

Co-authored-by: Maurits van Beusekom <maurits@baseflow.com>
  • Loading branch information
anniek-valk and mvanbeusekom committed Dec 31, 2020
1 parent 96e2328 commit cfa7098
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/camera/camera/CHANGELOG.md
@@ -1,3 +1,7 @@
## 0.6.4+1

* Added closeCaptureSession() to stopVideoRecording in Camera.java to fix an Android 6 crash

## 0.6.4

* Adds auto exposure support for Android and iOS implementations.
Expand Down
Expand Up @@ -560,6 +560,7 @@ public void stopVideoRecording(@NonNull final Result result) {

try {
recordingVideo = false;
closeCaptureSession();
mediaRecorder.stop();
mediaRecorder.reset();
startPreview();
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera/pubspec.yaml
Expand Up @@ -2,7 +2,7 @@ name: camera
description: A Flutter plugin for getting information about and controlling the
camera on Android and iOS. Supports previewing the camera feed, capturing images, capturing video,
and streaming image buffers to dart.
version: 0.6.4
version: 0.6.4+1
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
Expand Down
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists

0 comments on commit cfa7098

Please sign in to comment.