diff options
author | Glenn Kasten <gkasten@google.com> | 2012-09-24 13:51:58 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-09-24 13:51:58 -0700 |
commit | 7ca821d51972bb83fa900cf2206ae98f29b33ca9 (patch) | |
tree | 717661c94824cf168da0c4b93394d21972bda419 /services/audioflinger | |
parent | 595f54fd2d4990b2ff311314b76a224969d7e79e (diff) | |
parent | 99ae06be60d7ccd753a0808191583225e5533f3a (diff) | |
download | frameworks_av-7ca821d51972bb83fa900cf2206ae98f29b33ca9.zip frameworks_av-7ca821d51972bb83fa900cf2206ae98f29b33ca9.tar.gz frameworks_av-7ca821d51972bb83fa900cf2206ae98f29b33ca9.tar.bz2 |
Merge "Check clock_gettime(CLOCK_MONOTONIC) for failure" into jb-mr1-dev
Diffstat (limited to 'services/audioflinger')
-rw-r--r-- | services/audioflinger/FastMixer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp index 13003d9..3c8a256 100644 --- a/services/audioflinger/FastMixer.cpp +++ b/services/audioflinger/FastMixer.cpp @@ -454,6 +454,9 @@ bool FastMixer::threadLoop() if (oldTsValid) { time_t sec = newTs.tv_sec - oldTs.tv_sec; long nsec = newTs.tv_nsec - oldTs.tv_nsec; + ALOGE_IF(sec < 0 || (sec == 0 && nsec < 0), + "clock_gettime(CLOCK_MONOTONIC) failed: was %ld.%09ld but now %ld.%09ld", + oldTs.tv_sec, oldTs.tv_nsec, newTs.tv_sec, newTs.tv_nsec); if (nsec < 0) { --sec; nsec += 1000000000; |