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

Skip to content
Commit fce530c3 authored by Brian Lindahl's avatar Brian Lindahl
Browse files

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
parent 44ac2258
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment