diff options
author | Eric Laurent <elaurent@google.com> | 2014-05-26 16:03:08 -0700 |
---|---|---|
committer | Eric Laurent <elaurent@google.com> | 2014-05-26 16:13:30 -0700 |
commit | fe1a94e68e173fe4dfe7699112422a94eddacb4e (patch) | |
tree | a9443f7cb6fb34bc5015cc26fd9257d5d559f7f9 /services/audioflinger/AudioMixer.h | |
parent | c62476f0c0c1cf9283a38852bde0a4c9434df712 (diff) | |
download | frameworks_av-fe1a94e68e173fe4dfe7699112422a94eddacb4e.zip frameworks_av-fe1a94e68e173fe4dfe7699112422a94eddacb4e.tar.gz frameworks_av-fe1a94e68e173fe4dfe7699112422a94eddacb4e.tar.bz2 |
audioflinger: fix deadlock upon AudioRecord creation error
AudioFlinger:openRecord() should not hold mClientLock when
releasing the local reference on AudioRecord as the destructor will
also lock mClientLock.
Same fix for AudioFlinger::createTrack().
Also make sure that AudioFlinger::createEffect() holds mClientLock
when clearing local reference to the Client in case of error.
Regression introduced by 021cf9634ab09c0753a40b7c9ef4ba603be5c3da
Bug: 15118096.
Change-Id: Ie961c398c8e0460bca9b95e2ee4ce6859316c275
Diffstat (limited to 'services/audioflinger/AudioMixer.h')
0 files changed, 0 insertions, 0 deletions