summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-08-27 16:06:39 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-08-27 16:06:40 +0000
commitecd03ba3f02177652351f559ff18afcce8ddc651 (patch)
tree02902547d6ba3608cc7b9bd765092ee704dc4828 /services/audioflinger
parent9db6ffb6470107529285263a345dbb04e3d1cc95 (diff)
parentefaa7ab620b2ee936efa4fb74dc4c670ed757a46 (diff)
downloadframeworks_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.cpp1
-rw-r--r--services/audioflinger/Tracks.cpp1
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;
}
}