Skip to content
This repository has been archived by the owner on Feb 22, 2023. It is now read-only.

Commit

Permalink
[camera] Fix video recording exception on Android (#3375)
Browse files Browse the repository at this point in the history
* Fixed video recording

* Update changelog and pubspec version

* Update packages/camera/camera/CHANGELOG.md

Co-authored-by: Maurits van Beusekom <[email protected]>

Co-authored-by: Maurits van Beusekom <[email protected]>
  • Loading branch information
BeMacized and mvanbeusekom authored Dec 27, 2020
1 parent a9513d5 commit 7eff062
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/camera/camera/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.3+2

* Fixes crash on Android which occurs after video recording has stopped just before taking a picture.

## 0.6.3+1

* Fixes flash & torch modes not working on some Android devices.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,9 @@ public void onCaptureFailed(
@NonNull CameraCaptureSession session,
@NonNull CaptureRequest request,
@NonNull CaptureFailure failure) {
assert (pictureCaptureRequest != null);
if (pictureCaptureRequest == null || pictureCaptureRequest.isFinished()) {
return;
}
String reason;
switch (failure.getReason()) {
case CaptureFailure.REASON_ERROR:
Expand Down
2 changes: 1 addition & 1 deletion packages/camera/camera/pubspec.yaml
Original file line number Diff line number Diff line change
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.3+1
version: 0.6.3+2
homepage: https://github.com/flutter/plugins/tree/master/packages/camera/camera

dependencies:
Expand Down

0 comments on commit 7eff062

Please sign in to comment.