commit | 8fd5d5e8e4546dacb83c55d0e3142f3e3c70c1ad | [log] [tgz] |
---|---|---|
author | jiabin <jiabin@google.com> | Fri Mar 23 14:09:28 2018 -0700 |
committer | jiabin <jiabin@google.com> | Fri Mar 23 14:09:28 2018 -0700 |
tree | 7d46851bd3a6eb42ff2aa6bfbc5ef0c1e937db41 | |
parent | 32ca41d02880686148cfa730897c575104cf045c [diff] |
Add lock when adjusting suggested stream volume. When adjusting suggested stream volume, we may set the stream type according to mVolumeControlStream, which could be changed by other thread. To avoid getting stream type -1, which cause crash when checking stream type, add a lock request in adjustSuggestedStreamVolume. Bug: 71333271 Test: Manually test Change-Id: If98f50f4f2389818b7ac3b0f33bdc7e27f3ad3f8