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
1 file changed