Add note that isLastBuffer is best-effort only

PiperOrigin-RevId: 391952144
This commit is contained in:
olly 2021-08-20 10:55:15 +01:00 committed by bachinger
parent 557a1833f7
commit 082542c152

View File

@ -1968,7 +1968,9 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
* @param bufferPresentationTimeUs The presentation time of the output buffer in microseconds. * @param bufferPresentationTimeUs The presentation time of the output buffer in microseconds.
* @param isDecodeOnlyBuffer Whether the buffer was marked with {@link C#BUFFER_FLAG_DECODE_ONLY} * @param isDecodeOnlyBuffer Whether the buffer was marked with {@link C#BUFFER_FLAG_DECODE_ONLY}
* by the source. * by the source.
* @param isLastBuffer Whether the buffer is the last sample of the current stream. * @param isLastBuffer Whether the buffer is known to contain the last sample of the current
* stream. This flag is set on a best effort basis, and any logic relying on it should degrade
* gracefully to handle cases where it's not set.
* @param format The {@link Format} associated with the buffer. * @param format The {@link Format} associated with the buffer.
* @return Whether the output buffer was fully processed (for example, rendered or skipped). * @return Whether the output buffer was fully processed (for example, rendered or skipped).
* @throws ExoPlaybackException If an error occurs processing the output buffer. * @throws ExoPlaybackException If an error occurs processing the output buffer.