Remove unused previousExtractor from HlsExtractorFactory
PiperOrigin-RevId: 316902430
This commit is contained in:
parent
733e71b4de
commit
a5bc91f09b
@ -89,7 +89,6 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public BundledHlsMediaChunkExtractor createExtractor(
|
public BundledHlsMediaChunkExtractor createExtractor(
|
||||||
@Nullable HlsMediaChunkExtractor previousExtractor,
|
|
||||||
Uri uri,
|
Uri uri,
|
||||||
Format format,
|
Format format,
|
||||||
@Nullable List<Format> muxedCaptionFormats,
|
@Nullable List<Format> muxedCaptionFormats,
|
||||||
|
@ -36,9 +36,6 @@ public interface HlsExtractorFactory {
|
|||||||
/**
|
/**
|
||||||
* Creates an {@link Extractor} for extracting HLS media chunks.
|
* 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 uri The URI of the media chunk.
|
||||||
* @param format A {@link Format} associated with the chunk to extract.
|
* @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
|
* @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.
|
* @throws IOException If an I/O error is encountered while sniffing.
|
||||||
*/
|
*/
|
||||||
HlsMediaChunkExtractor createExtractor(
|
HlsMediaChunkExtractor createExtractor(
|
||||||
@Nullable HlsMediaChunkExtractor previousExtractor,
|
|
||||||
Uri uri,
|
Uri uri,
|
||||||
Format format,
|
Format format,
|
||||||
@Nullable List<Format> muxedCaptionFormats,
|
@Nullable List<Format> muxedCaptionFormats,
|
||||||
|
@ -427,7 +427,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
|
|||||||
|
|
||||||
extractor =
|
extractor =
|
||||||
extractorFactory.createExtractor(
|
extractorFactory.createExtractor(
|
||||||
previousExtractor,
|
|
||||||
dataSpec.uri,
|
dataSpec.uri,
|
||||||
trackFormat,
|
trackFormat,
|
||||||
muxedCaptionFormats,
|
muxedCaptionFormats,
|
||||||
|
@ -69,7 +69,6 @@ public class DefaultHlsExtractorFactoryTest {
|
|||||||
BundledHlsMediaChunkExtractor result =
|
BundledHlsMediaChunkExtractor result =
|
||||||
new DefaultHlsExtractorFactory()
|
new DefaultHlsExtractorFactory()
|
||||||
.createExtractor(
|
.createExtractor(
|
||||||
/* previousExtractor= */ null,
|
|
||||||
tsUri,
|
tsUri,
|
||||||
webVttFormat,
|
webVttFormat,
|
||||||
/* muxedCaptionFormats= */ null,
|
/* muxedCaptionFormats= */ null,
|
||||||
@ -93,7 +92,6 @@ public class DefaultHlsExtractorFactoryTest {
|
|||||||
BundledHlsMediaChunkExtractor result =
|
BundledHlsMediaChunkExtractor result =
|
||||||
new DefaultHlsExtractorFactory()
|
new DefaultHlsExtractorFactory()
|
||||||
.createExtractor(
|
.createExtractor(
|
||||||
/* previousExtractor= */ null,
|
|
||||||
tsUri,
|
tsUri,
|
||||||
webVttFormat,
|
webVttFormat,
|
||||||
/* muxedCaptionFormats= */ null,
|
/* muxedCaptionFormats= */ null,
|
||||||
@ -116,7 +114,6 @@ public class DefaultHlsExtractorFactoryTest {
|
|||||||
BundledHlsMediaChunkExtractor result =
|
BundledHlsMediaChunkExtractor result =
|
||||||
new DefaultHlsExtractorFactory()
|
new DefaultHlsExtractorFactory()
|
||||||
.createExtractor(
|
.createExtractor(
|
||||||
/* previousExtractor= */ null,
|
|
||||||
tsUri,
|
tsUri,
|
||||||
webVttFormat,
|
webVttFormat,
|
||||||
/* muxedCaptionFormats= */ null,
|
/* muxedCaptionFormats= */ null,
|
||||||
@ -140,7 +137,6 @@ public class DefaultHlsExtractorFactoryTest {
|
|||||||
BundledHlsMediaChunkExtractor result =
|
BundledHlsMediaChunkExtractor result =
|
||||||
new DefaultHlsExtractorFactory()
|
new DefaultHlsExtractorFactory()
|
||||||
.createExtractor(
|
.createExtractor(
|
||||||
/* previousExtractor= */ null,
|
|
||||||
tsUri,
|
tsUri,
|
||||||
webVttFormat,
|
webVttFormat,
|
||||||
/* muxedCaptionFormats= */ null,
|
/* muxedCaptionFormats= */ null,
|
||||||
@ -158,7 +154,6 @@ public class DefaultHlsExtractorFactoryTest {
|
|||||||
BundledHlsMediaChunkExtractor result =
|
BundledHlsMediaChunkExtractor result =
|
||||||
new DefaultHlsExtractorFactory()
|
new DefaultHlsExtractorFactory()
|
||||||
.createExtractor(
|
.createExtractor(
|
||||||
/* previousExtractor= */ null,
|
|
||||||
tsUri,
|
tsUri,
|
||||||
webVttFormat,
|
webVttFormat,
|
||||||
/* muxedCaptionFormats= */ null,
|
/* muxedCaptionFormats= */ null,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user