Check the two Extractor instantiation sites in HLS remain consistent
PiperOrigin-RevId: 542585842
This commit is contained in:
parent
ea0f564c1e
commit
ca766b6979
@ -93,6 +93,7 @@ public final class BundledHlsMediaChunkExtractor implements HlsMediaChunkExtract
|
||||
extractor.getUnderlyingImplementation() == extractor,
|
||||
"Can't recreate wrapped extractors. Outer type: " + extractor.getClass());
|
||||
Extractor newExtractorInstance;
|
||||
// LINT.IfChange(extractor_instantiation)
|
||||
if (extractor instanceof WebvttExtractor) {
|
||||
newExtractorInstance =
|
||||
new WebvttExtractor(multivariantPlaylistFormat.language, timestampAdjuster);
|
||||
|
@ -159,6 +159,7 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory {
|
||||
Format format,
|
||||
@Nullable List<Format> muxedCaptionFormats,
|
||||
TimestampAdjuster timestampAdjuster) {
|
||||
// LINT.IfChange(extractor_instantiation)
|
||||
switch (fileType) {
|
||||
case FileTypes.WEBVTT:
|
||||
return new WebvttExtractor(format.language, timestampAdjuster);
|
||||
|
Loading…
x
Reference in New Issue
Block a user