diff options
author | Glenn Kasten <gkasten@google.com> | 2013-11-20 13:54:52 -0800 |
---|---|---|
committer | Glenn Kasten <gkasten@google.com> | 2013-11-20 14:51:07 -0800 |
commit | e75da4004b2c814987aa2adf8a76190f92d99c65 (patch) | |
tree | 35c6bc8914384e610eba3633a08e2f5e78b062b5 /services/audioflinger/Effects.h | |
parent | 663c2247b71086e30bfd3192979d1dd7f15c539e (diff) | |
download | frameworks_av-e75da4004b2c814987aa2adf8a76190f92d99c65.zip frameworks_av-e75da4004b2c814987aa2adf8a76190f92d99c65.tar.gz frameworks_av-e75da4004b2c814987aa2adf8a76190f92d99c65.tar.bz2 |
Fix bug in creation of EffectHandle when out of memory
If there is insufficient client memory to create the EffectHandle,
it was returning a handle which would be useless. Now it correctly
reports the out-of-memory error back to client.
Change-Id: I894e65d5d17df39383032c1527be6ccd35f578bb
Diffstat (limited to 'services/audioflinger/Effects.h')
-rw-r--r-- | services/audioflinger/Effects.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/audioflinger/Effects.h b/services/audioflinger/Effects.h index b717857..50535a2 100644 --- a/services/audioflinger/Effects.h +++ b/services/audioflinger/Effects.h @@ -169,6 +169,7 @@ public: const sp<IEffectClient>& effectClient, int32_t priority); virtual ~EffectHandle(); + virtual status_t initCheck(); // IEffect virtual status_t enable(); |