diff options
author | Marco Nelissen <marcone@google.com> | 2013-03-27 13:48:36 -0700 |
---|---|---|
committer | Marco Nelissen <marcone@google.com> | 2013-03-27 14:44:20 -0700 |
commit | 59ca8040a0cfb0324c6be7dded74d02e9f5cf6e8 (patch) | |
tree | 26bb9e7f0263f8230b3d5dd70c38df657b392d78 /media/libmediaplayerservice/StagefrightRecorder.cpp | |
parent | bdeaccfdfc26f9257d2d8036381cb5e8982fa6f5 (diff) | |
download | frameworks_av-59ca8040a0cfb0324c6be7dded74d02e9f5cf6e8.zip frameworks_av-59ca8040a0cfb0324c6be7dded74d02e9f5cf6e8.tar.gz frameworks_av-59ca8040a0cfb0324c6be7dded74d02e9f5cf6e8.tar.bz2 |
Fix valgrind error.
The constructor calls reset(), which in turn calls stop(), which then
accesses mCaptureTimeLapse before it has been initialized.
Change-Id: Ia94ac740b9bd1a0389c72647a5639dd25320d92c
Diffstat (limited to 'media/libmediaplayerservice/StagefrightRecorder.cpp')
-rw-r--r-- | media/libmediaplayerservice/StagefrightRecorder.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libmediaplayerservice/StagefrightRecorder.cpp b/media/libmediaplayerservice/StagefrightRecorder.cpp index c2c9985..095d5ca 100644 --- a/media/libmediaplayerservice/StagefrightRecorder.cpp +++ b/media/libmediaplayerservice/StagefrightRecorder.cpp @@ -70,7 +70,8 @@ StagefrightRecorder::StagefrightRecorder() mOutputFd(-1), mAudioSource(AUDIO_SOURCE_CNT), mVideoSource(VIDEO_SOURCE_LIST_END), - mStarted(false), mSurfaceMediaSource(NULL) { + mStarted(false), mSurfaceMediaSource(NULL), + mCaptureTimeLapse(false) { ALOGV("Constructor"); reset(); |