mirror of
https://github.com/androidx/media.git
synced 2025-04-29 22:36:54 +08: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
@ -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…
x
Reference in New Issue
Block a user