summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--services/audioflinger/Effects.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/services/audioflinger/Effects.cpp b/services/audioflinger/Effects.cpp
index fb1e80c..879b6c9 100644
--- a/services/audioflinger/Effects.cpp
+++ b/services/audioflinger/Effects.cpp
@@ -1466,14 +1466,14 @@ void AudioFlinger::EffectChain::process_l()
}
size_t size = mEffects.size();
- for (size_t i = 0; i < size; i++) {
- mEffects[i]->updateState();
- }
if (doProcess) {
for (size_t i = 0; i < size; i++) {
mEffects[i]->process();
}
}
+ for (size_t i = 0; i < size; i++) {
+ mEffects[i]->updateState();
+ }
}
// addEffect_l() must be called with PlaybackThread::mLock held