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
affdff65
authored
Dec 02, 2020
by
bachinger
Committed by
Oliver Woodman
Dec 03, 2020
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Remove HLS chunks based on parts not in playlist anymore
Issue: #5011 PiperOrigin-RevId: 345275266
parent
10b9de83
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsSampleStreamWrapper.java
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsSampleStreamWrapper.java
View file @
affdff65
...
...
@@ -767,10 +767,14 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
return
;
}
if
(!
readOnlyMediaChunks
.
isEmpty
()
&&
chunkSource
.
getChunkPublicationState
(
Iterables
.
getLast
(
readOnlyMediaChunks
))
int
newQueueSize
=
readOnlyMediaChunks
.
size
();
while
(
newQueueSize
>
0
&&
chunkSource
.
getChunkPublicationState
(
readOnlyMediaChunks
.
get
(
newQueueSize
-
1
))
==
CHUNK_PUBLICATION_STATE_REMOVED
)
{
discardUpstream
(
mediaChunks
.
size
()
-
1
);
newQueueSize
--;
}
if
(
newQueueSize
<
readOnlyMediaChunks
.
size
())
{
discardUpstream
(
newQueueSize
);
}
int
preferredQueueSize
=
chunkSource
.
getPreferredQueueSize
(
positionUs
,
readOnlyMediaChunks
);
...
...
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