commit | c60828e262ea18e78a4ad58c148db1411f224c2c | [log] [tgz] |
---|---|---|
author | Kiran Kumar Krishna <kiran@motorola.com> | Tue Nov 01 07:50:22 2016 -0500 |
committer | Glenn Kasten <gkasten@google.com> | Tue Dec 13 16:27:35 2016 -0800 |
tree | cae833e29a12edf137b9ca5bee1e3e3975e54a23 | |
parent | 97bcb4f3536c456c00f0f368190506ca7651794d [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