commit | 2d70c80a7f31ea9277c75af9666116e338482b09 | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Tue Sep 29 11:12:57 2009 -0700 |
committer | Eric Laurent <elaurent@google.com> | Wed Sep 30 14:48:20 2009 -0700 |
tree | b21e44193f4ca006b4c34d4775e5ab5639b50339 | |
parent | a04f14a57a3d29e7f9d8b47e9594b5054115de70 [diff] |
Fix issue 2153835: AudioFlinger: setParameters() can remain stuck if output thread is terminated. Wait for the parameter set completed condition with a time out in ThreadBase::setParameters(). Also lock AudioFlinger mutex before accessing thread list in AudioFlinger::setParameters() and keep a strong reference on the thread being used in case it is exited while processing the request.