diff options
author | James Dong <jdong@google.com> | 2010-05-13 12:07:32 -0700 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-05-13 12:08:29 -0700 |
commit | e292b3bc9c28e47bb8411728ad40efb84d0471e8 (patch) | |
tree | cb51804b07a1e1744a6ecf7a8313f05406303348 /media/libmediaplayerservice | |
parent | fae47fd008974fb78f38ae4a6d539cd8246d3159 (diff) | |
download | frameworks_base-e292b3bc9c28e47bb8411728ad40efb84d0471e8.zip frameworks_base-e292b3bc9c28e47bb8411728ad40efb84d0471e8.tar.gz frameworks_base-e292b3bc9c28e47bb8411728ad40efb84d0471e8.tar.bz2 |
Remove dummy surface in CameraSource
bug - 2680919
Change-Id: Ia0308cf57fd67058b4dd0e042b3ce97f13df475f
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/StagefrightRecorder.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp index 12e8fe6..e41a716 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.cpp +++ b/media/libmediaplayerservice/StagefrightRecorder.cpp @@ -585,13 +585,13 @@ status_t StagefrightRecorder::startMPEG4Recording() { return UNKNOWN_ERROR; } + CHECK_EQ(OK, mCamera->setPreviewDisplay(mPreviewSurface)); + sp<CameraSource> cameraSource = CameraSource::CreateFromCamera(mCamera); CHECK(cameraSource != NULL); - cameraSource->setPreviewSurface(mPreviewSurface); - sp<MetaData> enc_meta = new MetaData; enc_meta->setInt32(kKeyBitRate, mVideoBitRate); enc_meta->setInt32(kKeySampleRate, mFrameRate); // XXX: kKeySampleRate? |