diff options
author | Apurva Rajguru <arajguru@quicinc.com> | 2010-03-23 16:25:56 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2010-12-14 05:14:24 -0500 |
commit | 493119e94be3f9656e1ae5035234ad2778b1a6ce (patch) | |
tree | f81a09a163660adc0dd31a24ecd9d3cb94f78a92 | |
parent | cde0065bd5f6576ff350f7f0b1d5a87459e1a7bc (diff) | |
download | frameworks_base-493119e94be3f9656e1ae5035234ad2778b1a6ce.zip frameworks_base-493119e94be3f9656e1ae5035234ad2778b1a6ce.tar.gz frameworks_base-493119e94be3f9656e1ae5035234ad2778b1a6ce.tar.bz2 |
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
-rw-r--r-- | camera/libcameraservice/CameraService.cpp | 5 |
1 files 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); } |