diff options
-rw-r--r-- | src/com/android/camera/VideoCamera.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java index f53daa3..6dcb42d 100644 --- a/src/com/android/camera/VideoCamera.java +++ b/src/com/android/camera/VideoCamera.java @@ -1444,6 +1444,8 @@ public class VideoCamera extends ActivityBase } catch (RuntimeException e) { Log.e(TAG, "Could not start media recorder. ", e); releaseMediaRecorder(); + // If start fails, frameworks will not lock the camera for us. + mCameraDevice.lock(); return; } enableCameraControls(false); |