commit | fdf8e0fa340534c318d7a1ff948bcf53fb8e1fdf | [log] [tgz] |
---|---|---|
author | Kuowei Li <kuowei.li@mediatek.com> | Fri Nov 26 17:38:34 2021 +0800 |
committer | Kuowei Li <kuowei.li@mediatek.com> | Thu Dec 02 11:08:38 2021 +0800 |
tree | ac60920f8328ef0395a0d076189b8e4ca02c4e0c | |
parent | 6100fd64f4818f145d1516fc3c9d2b3fb6a0646c [diff] |
audio: Fix AudioTrack stuck while interrupting waitStreamEndDone When AudioTrack is waiting for waitStreamEndDone() and there is interrupt coming. There is timing issue that AudioTrack will not enter STATE_STOPPED and be stuck at requestExitAndWait(). Move interrupt after exit flag be set to prevent this problem. Bug: 208191856 Test: atest CtsMediaTestCases Change-Id: I2a42b99ae4d33ff95db2a736585475b4ee636d04