commit | 116df6ab9075c8296610ac4786f310f017632296 | [log] [tgz] |
---|---|---|
author | zhenjun.zhang <zhenjun.zhang1@unisoc.com> | Wed Dec 08 09:17:13 2021 +0800 |
committer | Andy Hung <hunga@google.com> | Wed Dec 08 16:41:53 2021 +0000 |
tree | 3fbd6e81399507e3bc2b299c00ddad3b3d982bbc | |
parent | fe5ce1bdfe2d03ebb79fbcfd5634d9f7d9365ddd [diff] |
Fix mediaserver crash issue mDeviceCallback is not guarded by a lock, so it may be cleared twice when another thread calls removeAudioDeviceCallback. Solution: Guard mDeviceCallback with a lock. Test: monkey test Bug: 209707170 Change-Id: I1ff93d058b8f8ff7addb2eb1cd86a1c03ba80777