Remove unused previousExtractor from HlsExtractorFactory

PiperOrigin-RevId: 316902430
This commit is contained in:
aquilescanta 2020-06-17 17:22:17 +01:00 committed by Oliver Woodman
parent 733e71b4de
commit a5bc91f09b
4 changed files with 0 additions and 11 deletions

View File

@ -89,7 +89,6 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory {
@Override
public BundledHlsMediaChunkExtractor createExtractor(
@Nullable HlsMediaChunkExtractor previousExtractor,
Uri uri,
Format format,
@Nullable List<Format> muxedCaptionFormats,

View File

@ -36,9 +36,6 @@ public interface HlsExtractorFactory {
/**
* Creates an {@link Extractor} for extracting HLS media chunks.
*
* @param previousExtractor A previously used {@link Extractor} which can be reused if the current
* chunk is a continuation of the previously extracted chunk, or null otherwise. It is the
* responsibility of implementers to only reuse extractors that are suited for reusage.
* @param uri The URI of the media chunk.
* @param format A {@link Format} associated with the chunk to extract.
* @param muxedCaptionFormats List of muxed caption {@link Format}s. Null if no closed caption
@ -53,7 +50,6 @@ public interface HlsExtractorFactory {
* @throws IOException If an I/O error is encountered while sniffing.
*/
HlsMediaChunkExtractor createExtractor(
@Nullable HlsMediaChunkExtractor previousExtractor,
Uri uri,
Format format,
@Nullable List<Format> muxedCaptionFormats,

View File

@ -427,7 +427,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
extractor =
extractorFactory.createExtractor(
previousExtractor,
dataSpec.uri,
trackFormat,
muxedCaptionFormats,

View File

@ -69,7 +69,6 @@ public class DefaultHlsExtractorFactoryTest {
BundledHlsMediaChunkExtractor result =
new DefaultHlsExtractorFactory()
.createExtractor(
/* previousExtractor= */ null,
tsUri,
webVttFormat,
/* muxedCaptionFormats= */ null,
@ -93,7 +92,6 @@ public class DefaultHlsExtractorFactoryTest {
BundledHlsMediaChunkExtractor result =
new DefaultHlsExtractorFactory()
.createExtractor(
/* previousExtractor= */ null,
tsUri,
webVttFormat,
/* muxedCaptionFormats= */ null,
@ -116,7 +114,6 @@ public class DefaultHlsExtractorFactoryTest {
BundledHlsMediaChunkExtractor result =
new DefaultHlsExtractorFactory()
.createExtractor(
/* previousExtractor= */ null,
tsUri,
webVttFormat,
/* muxedCaptionFormats= */ null,
@ -140,7 +137,6 @@ public class DefaultHlsExtractorFactoryTest {
BundledHlsMediaChunkExtractor result =
new DefaultHlsExtractorFactory()
.createExtractor(
/* previousExtractor= */ null,
tsUri,
webVttFormat,
/* muxedCaptionFormats= */ null,
@ -158,7 +154,6 @@ public class DefaultHlsExtractorFactoryTest {
BundledHlsMediaChunkExtractor result =
new DefaultHlsExtractorFactory()
.createExtractor(
/* previousExtractor= */ null,
tsUri,
webVttFormat,
/* muxedCaptionFormats= */ null,