audio: Fix for OMXCodec::read() getting blocked
- Sometimes notification sound is not heard if it is played and stopped multiple times in a short duration. - If OMXCodec::read() gets blocked for filled buffers while in pause, it never returns as mFilledBuffers is always empty. Due to this AudioTrack destructor never exits as it waits for the AudioCallback thread to unblock it. - Ensure OMXCodec::read() returns even if timeout occurs while in pause and handle the same in AudioPlayer by returning zero bytes in AudioCallback. CRs-Fixed: 478768 Change-Id: I2ca40a673fdf95bccc3069a18b694670612a9895
Loading
Please register or sign in to comment