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

Skip to content
Commit 8f67e731 authored by Wonsik Kim's avatar Wonsik Kim
Browse files

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
parent 5416ffcf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment