diff options
author | linghao.kong <linghao.kong@samsung.com> | 2022-01-12 15:41:47 +0800 |
---|---|---|
committer | Shuzhen Wang <shuzhenwang@google.com> | 2022-05-21 21:01:44 -0700 |
commit | 4d60bff648b1e7e2cffa02602f5d9c00ce5816a4 (patch) | |
tree | 9112b066bad626d74f2b9879ac8247ec9fdd7e06 | |
parent | edeef9d2d5e7235812ecc7a7542d3a031c1e02a9 (diff) | |
download | Camera2-4d60bff648b1e7e2cffa02602f5d9c00ce5816a4.tar.gz |
Camera2: Invoke saveVideo when mVideoFileDescriptor != nullandroid13-dev
If MediaStore.EXTRA_OUTPUT is not specified, the video
file still needs to be saved to default external storage.
Test: Run BYOD Managed Provisioning video capture without
extra output path
Bug: 215294773
Change-Id: I586642681ef257fee808cc17bf879c86ef346e76
Signed-off-by: linghao.kong <linghao.kong@samsung.com>
-rw-r--r-- | src/com/android/camera/VideoModule.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/android/camera/VideoModule.java b/src/com/android/camera/VideoModule.java index 17d9fe747..abbae5265 100644 --- a/src/com/android/camera/VideoModule.java +++ b/src/com/android/camera/VideoModule.java @@ -1508,7 +1508,8 @@ public class VideoModule extends CameraModule if (mIsVideoCaptureIntent) { // if no file save is needed, we can show the post capture UI now showCaptureResult(); - } else { + } + if (mVideoFileDescriptor != null) { saveVideo(); } } |