Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 179a074f authored by Aniket Kumar Lata's avatar Aniket Kumar Lata Committed by Andy Hung
Browse files

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: default avatarZhou Song <zhous@codeaurora.org>

Test: AF active track removal with audio playback pause
Bug: 123375253
Change-Id: If35348af2144a28b84241e1cb93f497d5eec9a8a
parent 186f4ac0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment