summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2011-08-12 14:14:39 -0700
committerMarco Nelissen <marcone@google.com>2011-08-12 14:54:56 -0700
commit2255a1e64f842997273071b359eab6a88a3fe113 (patch)
treec6a17681b78e1723d619e0f156ccb69f317173be /services/audioflinger
parent88a2053e583180b4b5c37283a727e1795f8da207 (diff)
downloadframeworks_base-2255a1e64f842997273071b359eab6a88a3fe113.zip
frameworks_base-2255a1e64f842997273071b359eab6a88a3fe113.tar.gz
frameworks_base-2255a1e64f842997273071b359eab6a88a3fe113.tar.bz2
Don't remove effects on session 0
b/5159902 Change-Id: Id6f29fb1c687069f7480dd81d4745a558f202226
Diffstat (limited to 'services/audioflinger')
-rw-r--r--services/audioflinger/AudioFlinger.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index 95c469d..941c9c8 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -5118,7 +5118,9 @@ void AudioFlinger::purgeStaleEffects_l() {
sp<PlaybackThread> t = mPlaybackThreads.valueAt(i);
for (size_t j = 0; j < t->mEffectChains.size(); j++) {
sp<EffectChain> ec = t->mEffectChains[j];
- chains.push(ec);
+ if (ec->sessionId() > AUDIO_SESSION_OUTPUT_MIX) {
+ chains.push(ec);
+ }
}
}
for (size_t i = 0; i < mRecordThreads.size(); i++) {