From 22b9a3bffe68a17cc048255415be3ecc55a9140f Mon Sep 17 00:00:00 2001 From: MarcKe Date: Fri, 23 May 2014 12:55:11 +0200 Subject: 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 --- camera/CameraWrapper.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'camera') 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) -- cgit v1.1