summaryrefslogtreecommitdiffstats
path: root/media/libeffects
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2013-03-19 09:57:29 -0700
committerMarco Nelissen <marcone@google.com>2013-03-19 09:57:29 -0700
commit0003b9b56e77764c77fd4e4e1a5d6e44a55e5b8a (patch)
tree4e13711c7f56c2ff2e1c0c4defb66be9ede3a613 /media/libeffects
parentee6ad3bd4bfc8e71b3b8c96eb4ea56a592e13e65 (diff)
downloadframeworks_av-0003b9b56e77764c77fd4e4e1a5d6e44a55e5b8a.zip
frameworks_av-0003b9b56e77764c77fd4e4e1a5d6e44a55e5b8a.tar.gz
frameworks_av-0003b9b56e77764c77fd4e4e1a5d6e44a55e5b8a.tar.bz2
Fix valgrind error
The volume member of the BundledEffectContext class was not being initialized, resulting in uninitialized data being used for calculations and control flow. Change-Id: I84bf9fd478e5d0479e781323b21c7c03dea958c5
Diffstat (limited to 'media/libeffects')
-rw-r--r--media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
index 94b9acf..54f8d9e 100644
--- a/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
+++ b/media/libeffects/lvm/wrapper/Bundle/EffectBundle.cpp
@@ -224,6 +224,7 @@ extern "C" int EffectCreate(const effect_uuid_t *uuid,
pContext->pBundledContext->NumberEffectsEnabled = 0;
pContext->pBundledContext->NumberEffectsCalled = 0;
pContext->pBundledContext->firstVolume = LVM_TRUE;
+ pContext->pBundledContext->volume = 0;
#ifdef LVM_PCM
char fileName[256];