mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
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:
parent
5f935ef22e
commit
abfeea518e
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -561,7 +561,6 @@ public class MatroskaExtractor implements Extractor {
|
|||
|
||||
@Override
|
||||
public final void init(ExtractorOutput output) {
|
||||
extractorOutput = output;
|
||||
extractorOutput =
|
||||
parseSubtitlesDuringExtraction
|
||||
? new SubtitleTranscodingExtractorOutput(output, subtitleParserFactory)
|
||||
|
|
|
|||
Loading…
Reference in a new issue