commit | 51e4dc89f0e9b93f0be3204181caa9bef5376746 | [log] [tgz] |
---|---|---|
author | Vishnu Nair <vishnun@google.com> | Fri Oct 01 15:32:33 2021 -0700 |
committer | Vishnu Nair <vishnun@google.com> | Fri Oct 01 15:32:33 2021 -0700 |
tree | 86126ff2e057e2bb25d3a4de6e61fa684b0ba9f1 | |
parent | 979587e1f43c27557eb68c1d4031edd57100f553 [diff] |
BlastBufferQueue: Fix async worker deadlock The async onBufferReleased callback can trigger another onBufferReleased which will end up deadlocking the async worker thread. Fix this by executing the callbacks outside the lock. Test: atest android.media.cts.MediaSyncTest#testPlaybackRateDouble --rerun-util-failure 100 Fixes: 201604213 Change-Id: I40d163c3644c6a0128936cf41e8bf8969766d9da