Commit 6596cd1d by olly Committed by Oliver Woodman

Remove legacyKeepAvailableCodecInfosWithoutCodec

It's no longer used.

PiperOrigin-RevId: 373426109
parent 46c5f030
...@@ -1451,9 +1451,7 @@ public abstract class MediaCodecRenderer extends BaseRenderer { ...@@ -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;
} }
...@@ -1543,14 +1541,6 @@ public abstract class MediaCodecRenderer extends BaseRenderer { ...@@ -1543,14 +1541,6 @@ public abstract class MediaCodecRenderer extends BaseRenderer {
} }
/** /**
* 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.
* *
* <p>The default implementation is a no-op. * <p>The default implementation is a no-op.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment