Ensure consistent ExtractorOutput usage in WebvttExtractor

This change is a no-op, because
`SubtitleTranscodingExtractorOutput.seekMap` forwards directly to the
delegate implementation, but it seems clearer to always use the
wrapper.

Also remove a no-op assignment in `MatroskaExtractor`.

This is a follow-up to Issue: androidx/media#1779 where I manually checked every
implementation of `Extractor.init` for a similar mistake.

#cherrypick

PiperOrigin-RevId: 683607090
This commit is contained in:
ibaker 2024-10-08 07:01:18 -07:00 committed by Copybara-Service
parent 5f935ef22e
commit abfeea518e
2 changed files with 1 additions and 2 deletions

View File

@ -121,7 +121,7 @@ public final class WebvttExtractor implements Extractor {
parseSubtitlesDuringExtraction
? new SubtitleTranscodingExtractorOutput(output, subtitleParserFactory)
: output;
output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
this.output.seekMap(new SeekMap.Unseekable(C.TIME_UNSET));
}
@Override

View File

@ -561,7 +561,6 @@ public class MatroskaExtractor implements Extractor {
@Override
public final void init(ExtractorOutput output) {
extractorOutput = output;
extractorOutput =
parseSubtitlesDuringExtraction
? new SubtitleTranscodingExtractorOutput(output, subtitleParserFactory)