summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2014-12-10 01:38:52 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-12-10 01:38:52 +0000
commitc49d9cda49dab8b7dd0376cf56476b3e1895d5c6 (patch)
treefde01dcd3d550a8b1b34d2a264ab8bd912064852 /services/audioflinger
parent61697a5c1ddd2ad882a889474822851187734cf4 (diff)
parent2dda40d638138c426cf4a66ddd0da8794c87f5c7 (diff)
downloadframeworks_av-c49d9cda49dab8b7dd0376cf56476b3e1895d5c6.zip
frameworks_av-c49d9cda49dab8b7dd0376cf56476b3e1895d5c6.tar.gz
frameworks_av-c49d9cda49dab8b7dd0376cf56476b3e1895d5c6.tar.bz2
am 2dda40d6: Merge "audio policy: add support for custom mixes" into lmp-mr1-dev
* commit '2dda40d638138c426cf4a66ddd0da8794c87f5c7': audio policy: add support for custom mixes
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/Threads.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index dab6d91..1c3cf5d 100644
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -2180,7 +2180,13 @@ void AudioFlinger::PlaybackThread::threadLoop_drain()
void AudioFlinger::PlaybackThread::threadLoop_exit()
{
- // Default implementation has nothing to do
+ {
+ Mutex::Autolock _l(mLock);
+ for (size_t i = 0; i < mTracks.size(); i++) {
+ sp<Track> track = mTracks[i];
+ track->invalidate();
+ }
+ }
}
/*