Fix delay used when polling for rendered buffers
If a desired render time earlier than the current system clock time is provided to MediaCodec::releaseOutputBuffer, it is likely that the onFrameRendered callback will be dropped. This is because the code that sets the delay for polling for rendered buffers always assumes the desired render time is in the future. This is not necessarily true if apps choose to still specify a desired render time as soon as possible to render a buffer that has been delayed due to decoding or network problems, rather than using MediaCodec::releaseOutputBuffer that has no desired render time parameter. Bug: 288044725 Test: atest DecoderRenderTest Merged-In: I40bb693405d2338cf1b43d9a0d8545386595e8ed Change-Id: I3a26f901998e93f10504469c3dc67cbd8fdc52e1
Loading
Please register or sign in to comment