commit | 179a074f2706051bbe0e084598482a39e00368cd | [log] [tgz] |
---|---|---|
author | Aniket Kumar Lata <alata@quicinc.com> | Wed Jan 30 14:16:16 2019 -0800 |
committer | Andy Hung <hunga@google.com> | Fri Feb 08 12:26:55 2019 -0800 |
tree | f846f50eacfeb6a1d0d92079c7f0c8dc34f1757c | |
parent | 186f4ac0f006de84d940a460bb44ee0e325fd1eb [diff] |
audioflinger: fix redundant adding to tracksToRemove In order to avoid track to be added to tracksToRemove redundantly, merge the adding operation under exclusive condition check. This can make sure the add can happen only one time within one prepareTracks iterator. authored-by: Zhou Song <zhous@codeaurora.org> Test: AF active track removal with audio playback pause Bug: 123375253 Change-Id: If35348af2144a28b84241e1cb93f497d5eec9a8a