Remove legacyKeepAvailableCodecInfosWithoutCodec

It's no longer used.

PiperOrigin-RevId: 373426109
This commit is contained in:
olly 2021-05-12 20:28:41 +01:00 committed by Oliver Woodman
parent 46c5f030ce
commit 6596cd1d83

View file

@ -1451,9 +1451,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
} }
if (codec == null) { if (codec == null) {
if (!legacyKeepAvailableCodecInfosWithoutCodec()) {
availableCodecInfos = null; availableCodecInfos = null;
}
maybeInitCodecOrBypass(); maybeInitCodecOrBypass();
return null; return null;
} }
@ -1542,14 +1540,6 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
return evaluation; return evaluation;
} }
/**
* Returns whether to keep available codec infos when the codec hasn't been initialized, which is
* the behavior before a bug fix. See also [Internal: b/162837741].
*/
protected boolean legacyKeepAvailableCodecInfosWithoutCodec() {
return false;
}
/** /**
* Called when one of the output formats changes. * Called when one of the output formats changes.
* *