summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Threads.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-10-25 18:10:40 -0700
committerEric Laurent <elaurent@google.com>2013-10-28 14:17:22 -0700
commitfd4779740ec3e9e865d5514464df26d015354388 (patch)
tree11e6523dd9d2d04b6e0d3ea742968c6988646e2c /services/audioflinger/Threads.h
parent9cae217050aa1347d4ac5053c305754879e3f97f (diff)
downloadframeworks_av-fd4779740ec3e9e865d5514464df26d015354388.zip
frameworks_av-fd4779740ec3e9e865d5514464df26d015354388.tar.gz
frameworks_av-fd4779740ec3e9e865d5514464df26d015354388.tar.bz2
AudioFlinger: more fixes for offload audio lost
mStandby being false was not a reliable indication that something had been written to audio HAL. Considering the last track in mActiveTracks vector as the latest activated track was wrong as this is a SortedVector. Bug: 11247103. Change-Id: I397d011c5afcdd779def3fe25aaae7669a472cfc
Diffstat (limited to 'services/audioflinger/Threads.h')
-rw-r--r--services/audioflinger/Threads.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/Threads.h b/services/audioflinger/Threads.h
index 81804c2..a0b53cb 100644
--- a/services/audioflinger/Threads.h
+++ b/services/audioflinger/Threads.h
@@ -501,6 +501,7 @@ protected:
SortedVector< wp<Track> > mActiveTracks; // FIXME check if this could be sp<>
SortedVector<int> mWakeLockUids;
int mActiveTracksGeneration;
+ wp<Track> mLatestActiveTrack; // latest track added to mActiveTracks
// Allocate a track name for a given channel mask.
// Returns name >= 0 if successful, -1 on failure.