commit | 52762410dbc9189cd92a4094a1dbd4cfe8e71cb6 | [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 | 8855f9e7af9e1e3aaec7e9f3c3550bf56425e8be | |
parent | 359cf1cac2a7851a59dfe4960a1a5992ac6fdb84 [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