commit | efaa7ab620b2ee936efa4fb74dc4c670ed757a46 | [log] [tgz] |
---|---|---|
author | Glenn Kasten <gkasten@google.com> | Wed Aug 20 08:48:54 2014 -0700 |
committer | Glenn Kasten <gkasten@google.com> | Tue Aug 26 11:45:42 2014 -0700 |
tree | d6af179bd5e333f3d392baf525b2a18dd4edd238 | |
parent | 16681c8f4afa5f18649ed934c9d84198516a1054 [diff] |
Clear the timestamp latch valid flag if no new timestamp available Bug: 11815245 Change-Id: I94885a1b4c2c7c055b8eacc7f7d0fcd064094b6d
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 @@ } 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 @@ if (mState == FLUSHED) { mState = IDLE; } + mPreviousValid = false; } }