diff options
author | Glenn Kasten <gkasten@google.com> | 2014-08-27 16:06:39 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2014-08-27 16:06:40 +0000 |
commit | ecd03ba3f02177652351f559ff18afcce8ddc651 (patch) | |
tree | 02902547d6ba3608cc7b9bd765092ee704dc4828 /services/audioflinger | |
parent | 9db6ffb6470107529285263a345dbb04e3d1cc95 (diff) | |
parent | efaa7ab620b2ee936efa4fb74dc4c670ed757a46 (diff) | |
download | frameworks_av-ecd03ba3f02177652351f559ff18afcce8ddc651.zip frameworks_av-ecd03ba3f02177652351f559ff18afcce8ddc651.tar.gz frameworks_av-ecd03ba3f02177652351f559ff18afcce8ddc651.tar.bz2 |
Merge "Clear the timestamp latch valid flag if no new timestamp available"
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/Threads.cpp | 1 | ||||
-rw-r--r-- | services/audioflinger/Tracks.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp index f721d5c..eb286ae 100644 --- a/services/audioflinger/Threads.cpp +++ b/services/audioflinger/Threads.cpp @@ -2132,6 +2132,7 @@ ssize_t AudioFlinger::PlaybackThread::threadLoop_write() } else { bytesWritten = framesWritten; } + mLatchDValid = false; status_t status = mNormalSink->getTimestamp(mLatchD.mTimestamp); if (status == NO_ERROR) { size_t totalFramesWritten = mNormalSink->framesWritten(); diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp index c5ab832..6482f68 100644 --- a/services/audioflinger/Tracks.cpp +++ b/services/audioflinger/Tracks.cpp @@ -853,6 +853,7 @@ void AudioFlinger::PlaybackThread::Track::reset() if (mState == FLUSHED) { mState = IDLE; } + mPreviousValid = false; } } |