summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-07-20 15:57:23 -0700
committerEric Laurent <elaurent@google.com>2012-07-20 15:57:23 -0700
commite65c89113232d070dd9153c54ca19301bca7a162 (patch)
tree09997cb32d82da8d2549044a95eb31c8c35cf39d
parent76da2635edbe0e6d023c665d5c344a3b7e070d73 (diff)
downloadframeworks_av-e65c89113232d070dd9153c54ca19301bca7a162.zip
frameworks_av-e65c89113232d070dd9153c54ca19301bca7a162.tar.gz
frameworks_av-e65c89113232d070dd9153c54ca19301bca7a162.tar.bz2
fix audio effect not destroyed when needed.
commit a5f44eba contained an error which made that audio effect modules where not destroyed but left in the destroyed state rendering them unuseable after being released. Bug 6805168. Change-Id: Ia4e683b3c970ffd01846c482fde73d799ff219de
-rw-r--r--services/audioflinger/AudioFlinger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp
index ffb00e7..424d8bc 100644
--- a/services/audioflinger/AudioFlinger.cpp
+++ b/services/audioflinger/AudioFlinger.cpp
@@ -8056,7 +8056,7 @@ size_t AudioFlinger::EffectModule::removeHandle(EffectHandle *handle)
mState = DESTROYED;
}
- return size;
+ return mHandles.size();
}
// must be called with EffectModule::mLock held