diff options
| author | James Dong <jdong@google.com> | 2011-11-07 22:57:02 -0800 | 
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-11-07 22:57:02 -0800 | 
| commit | 49e82712b2b7072bb8b8d6e2c86115eaa82e9943 (patch) | |
| tree | fbd8e5b9db9272c35e91e240af395bd8862e464e /media | |
| parent | 197388e5f42fc21175a03e3abb05020fabbcbb71 (diff) | |
| parent | 93594b5aa16dbbb0b196f6e181a8ca099d7ab62b (diff) | |
| download | frameworks_av-49e82712b2b7072bb8b8d6e2c86115eaa82e9943.zip frameworks_av-49e82712b2b7072bb8b8d6e2c86115eaa82e9943.tar.gz frameworks_av-49e82712b2b7072bb8b8d6e2c86115eaa82e9943.tar.bz2  | |
Merge "Fix a hang issue where the first frame can be dropped for timelapse video recording." into ics-mr1
Diffstat (limited to 'media')
| -rw-r--r-- | media/libstagefright/CameraSourceTimeLapse.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
diff --git a/media/libstagefright/CameraSourceTimeLapse.cpp b/media/libstagefright/CameraSourceTimeLapse.cpp index 1ba79e5..e4de20a 100644 --- a/media/libstagefright/CameraSourceTimeLapse.cpp +++ b/media/libstagefright/CameraSourceTimeLapse.cpp @@ -257,6 +257,12 @@ bool CameraSourceTimeLapse::skipFrameAndModifyTimeStamp(int64_t *timestampUs) {              mForceRead = false;              *timestampUs =                  mLastFrameTimestampUs + mTimeBetweenTimeLapseVideoFramesUs; + +            // Really make sure that this video recording frame will not be dropped. +            if (*timestampUs < mStartTimeUs) { +                LOGI("set timestampUs to start time stamp %lld us", mStartTimeUs); +                *timestampUs = mStartTimeUs; +            }              return false;          }      }  | 
