summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcKe <herderkewitz@googlemail.com>2014-05-23 12:55:11 +0200
committerMarcKe <herderkewitz@googlemail.com>2014-05-23 12:55:11 +0200
commit22b9a3bffe68a17cc048255415be3ecc55a9140f (patch)
tree10c7780108b0862d19cf0e2ad3a044ef52a58cf1
parent51ae80021ccf1098af5dae66fe441fed69959f14 (diff)
downloaddevice_samsung_i9300-22b9a3bffe68a17cc048255415be3ecc55a9140f.zip
device_samsung_i9300-22b9a3bffe68a17cc048255415be3ecc55a9140f.tar.gz
device_samsung_i9300-22b9a3bffe68a17cc048255415be3ecc55a9140f.tar.bz2
fix preview/camera crash after stopping video record
After stopping a video record, the camera preview was always freezing with the cm camera. With the google camera, the whole camera even crash and you could not connect to the camera anymore. This commit fixes the issue. Change-Id: Ic2b6e626e983fcd9d5c7e73ad99b27e5afd16dc7
-rw-r--r--camera/CameraWrapper.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/camera/CameraWrapper.cpp b/camera/CameraWrapper.cpp
index 721852e..3f8b017 100644
--- a/camera/CameraWrapper.cpp
+++ b/camera/CameraWrapper.cpp
@@ -305,10 +305,6 @@ void camera_stop_recording(struct camera_device * device)
VENDOR_CALL(device, stop_recording);
-
- /* Restart preview after stop recording to flush buffers and not crash */
- VENDOR_CALL(device, stop_preview);
- VENDOR_CALL(device, start_preview);
}
int camera_recording_enabled(struct camera_device * device)