From 493119e94be3f9656e1ae5035234ad2778b1a6ce Mon Sep 17 00:00:00 2001 From: Apurva Rajguru Date: Tue, 23 Mar 2010 16:25:56 -0700 Subject: Camera: Call startRecording from CameraService layer. Enable the MSG_VIDEO_FRAME message in startRecordingMode(). This will ensure that the mHardware->startRecording() call is issued from CameraService. Change-Id: I966c7d8955995417fa6fe0317615da4646b78878 --- camera/libcameraservice/CameraService.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp index b567d1a..578cac0 100644 --- a/camera/libcameraservice/CameraService.cpp +++ b/camera/libcameraservice/CameraService.cpp @@ -587,6 +587,8 @@ status_t CameraService::Client::startRecordingMode() return NO_ERROR; } + mHardware->enableMsgType(CAMERA_MSG_VIDEO_FRAME); + // start recording mode ret = mHardware->startRecording(); if (ret != NO_ERROR) { @@ -771,9 +773,6 @@ status_t CameraService::Client::startRecording() mMediaPlayerBeep->start(); } } - - mHardware->enableMsgType(CAMERA_MSG_VIDEO_FRAME); - return startCameraMode(CAMERA_RECORDING_MODE); } -- cgit v1.1