commit | 8f67e7313fbb859cc97f4d2f0e96f08286febd28 | [log] [tgz] |
---|---|---|
author | Wonsik Kim <wonsik@google.com> | Sat Oct 19 04:13:05 2024 +0000 |
committer | Wonsik Kim <wonsik@google.com> | Sat Oct 19 04:13:05 2024 +0000 |
tree | 8480e35b559a0a9d603c3b264d8c2abd32271c2c | |
parent | 5416ffcf9fdccb79a938fae467fa22b56088020d [diff] |
Fix a race condition in CCodecBufferChannel::requestInitialInputBuffers requestInitialInputBuffers() send buffers to the client, so it should be guarded behind QueueGuard. The lack of the guard led to input buffers being reported while the codec is not running, thus making the MediaCodec internal state inconsistent. Change-Id: Ibf6ca49a656c675314faa691c6bd3ff2911a2fbb Test: atest MctsMediaV2TestCases Bug: 343502509 Flag: android.media.codec.codec_buffer_state_cleanup