commit | 6a99d2058d0e5afed3643367166abee6b978209f | [log] [tgz] |
---|---|---|
author | Eric Laurent <elaurent@google.com> | Thu Oct 17 18:59:26 2013 -0700 |
committer | The Android Automerger <android-build@google.com> | Fri Oct 18 14:48:42 2013 -0700 |
tree | 95746546a67c27a04a0e5bd82f9760d80ad5f0d9 | |
parent | e3a7ca2e823c3d9bb1cecc6fe6a597a11fdd1129 [diff] |
audioflinger: fix track terminated before playing When a track is terminated before any audio was written, we should not send a drain request to the HAL. The drain will be ignored and we will wait the async callback for ever. Also fix a potential deadlock by not deleting a track with the thread mutex held: mPreviousTrack changed from a sp to a raw pointer. Bug: 11247103. Change-Id: I0a4b47b099204c7c326d45d700234ab8f72d8eae