commit | 0ca38308c75568d571016c0e24fb8246bbf239b6 | [log] [tgz] |
---|---|---|
author | Kiran Kumar Krishna <kiran@motorola.com> | Tue Nov 01 07:50:22 2016 -0500 |
committer | Glenn Kasten <gkasten@google.com> | Fri Dec 16 11:49:23 2016 -0800 |
tree | 23d77b77109ca92dfa41a91160ac62cf244c3820 | |
parent | c7e4f8e44f40e43c884b87f7ed7a8c0caa365352 [diff] |
AudioRecord: fix AudioRecordThread crash upon exit In case of error during openRecord_l(), there is a possibility that a newly created AudioRecordThread is resumed by requestExit() just after entering the Thread class _threadLoop() but before entering the class threadLoop(). In this case, processAudioBuffer() is executed once with mCblk == 0 and we assert. Test: test case at bug Bug: 29993798 Change-Id: I15d4f138218f6f01a020c4fc568a5b4831cb92a7