summaryrefslogtreecommitdiffstats
path: root/src/com/android/camera/VideoCamera.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/camera/VideoCamera.java')
-rw-r--r--src/com/android/camera/VideoCamera.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index 2e9b22f..b7e1ff9 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -134,6 +134,9 @@ public class VideoCamera extends NoSearchActivity
private final static String EXTRA_QUICK_CAPTURE =
"android.intent.extra.quickCapture";
+ private android.hardware.Camera mCameraDevice;
+ private final CameraErrorCallback mErrorCallback = new CameraErrorCallback();
+
private ComboPreferences mPreferences;
private PreviewFrameLayout mPreviewFrameLayout;
@@ -730,6 +733,7 @@ public class VideoCamera extends NoSearchActivity
// released and we need to open the camera.
mCameraDevice = CameraHolder.instance().open(mCameraId);
}
+ mCameraDevice.setErrorCallback(mErrorCallback);
mCameraDevice.lock();
if (mPreviewing == true) {
@@ -995,8 +999,6 @@ public class VideoCamera extends NoSearchActivity
}
}
- private android.hardware.Camera mCameraDevice;
-
// Prepares media recorder.
private void initializeRecorder() {
Log.v(TAG, "initializeRecorder");