Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
a5bc91f0
authored
Jun 17, 2020
by
aquilescanta
Committed by
Oliver Woodman
Jun 17, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove unused previousExtractor from HlsExtractorFactory
PiperOrigin-RevId: 316902430
parent
733e71b4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
11 deletions
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactory.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsExtractorFactory.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsMediaChunk.java
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactoryTest.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactory.java
View file @
a5bc91f0
...
@@ -89,7 +89,6 @@ public final class DefaultHlsExtractorFactory implements HlsExtractorFactory {
...
@@ -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
,
...
...
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsExtractorFactory.java
View file @
a5bc91f0
...
@@ -36,9 +36,6 @@ public interface HlsExtractorFactory {
...
@@ -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 {
...
@@ -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
,
...
...
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsMediaChunk.java
View file @
a5bc91f0
...
@@ -427,7 +427,6 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
...
@@ -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
,
...
...
library/hls/src/test/java/com/google/android/exoplayer2/source/hls/DefaultHlsExtractorFactoryTest.java
View file @
a5bc91f0
...
@@ -69,7 +69,6 @@ public class DefaultHlsExtractorFactoryTest {
...
@@ -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 {
...
@@ -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 {
...
@@ -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 {
...
@@ -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 {
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment