commit | 222587c05cf8879922b7644190ac5d65eeb22035 | [log] [tgz] |
---|---|---|
author | Arun Johnson <arunjohnson@google.com> | Thu Jun 23 18:04:41 2022 +0000 |
committer | Arun Johnson <arunjohnson@google.com> | Fri Jul 15 16:55:23 2022 +0000 |
tree | 4e2488c613a77e998cc52ecca2d3a2d8ca58ba6b | |
parent | 79957d476a9f0506cb9a536efad4a7c83a3b0f4c [diff] |
Fix race while setting ASyncNotify callback Holding mAsyncCallbackLock while setCallback() in mediacodec can cause deadlock. setCallback() is done without lock but the ASyncCallback and userdata assignments are done within the lock so that we can respond to async callback immediatly bug: 236908959 Change-Id: Id0d2befa8520cbd35b6265037e6481276dcb1bfc