commit | 607364600e4f6ef8bebec8958e16e7fb0bcb7d25 | [log] [tgz] |
---|---|---|
author | Jean-Michel Trivi <jmtrivi@google.com> | Wed Sep 12 18:48:33 2012 -0700 |
committer | Jean-Michel Trivi <jmtrivi@google.com> | Wed Sep 12 19:40:30 2012 -0700 |
tree | dd7c19507d39379c06116e54c6e2de979ef90956 | |
parent | 71ea9f024c3943160110d9aa15b082b66516f72e [diff] |
Don't deadlock on AudioRecord start when reads return 0 When calling start() on an AudioRecord with a HAL that returns 0 on a read() operation, the start blocking condition was never unblocked. Add a boolean to track the first read operation so the returned number of bytes (mBytesRead) is only evaluated after that first read. Change-Id: I8c735a00d48cd6a0da467ccdf75d3616b38f6afa