mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Remove legacyKeepAvailableCodecInfosWithoutCodec
It's no longer used. PiperOrigin-RevId: 373426109
This commit is contained in:
parent
46c5f030ce
commit
6596cd1d83
1 changed files with 1 additions and 11 deletions
|
|
@ -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.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue