Deprecate instead of delete BaseRender.readSource(FormatHolder, DecoderInputBuffer)

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=148808381
This commit is contained in:
sxp 2017-02-28 13:28:09 -08:00 committed by Oliver Woodman
parent 5b98ff7246
commit 0dee4aec70

View File

@ -254,6 +254,14 @@ public abstract class BaseRenderer implements Renderer, RendererCapabilities {
return index;
}
/**
* Use {@link #readSource(FormatHolder, DecoderInputBuffer, boolean)} instead.
*/
@Deprecated
protected final int readSource(FormatHolder formatHolder, DecoderInputBuffer buffer) {
return readSource(formatHolder, buffer, false);
}
/**
* Reads from the enabled upstream source. If the upstream source has been read to the end then
* {@link C#RESULT_BUFFER_READ} is only returned if {@link #setCurrentStreamFinal()} has been