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
c269a62f
authored
Jun 15, 2021
by
olly
Committed by
Ian Baker
Jul 16, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
HLS: Fix issue where new init segment would not be loaded
Issue: #9004 PiperOrigin-RevId: 379516815
parent
08dbfd5c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
RELEASENOTES.md
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsMediaChunk.java
RELEASENOTES.md
View file @
c269a62f
...
...
@@ -19,6 +19,11 @@
is set incorrectly
(
[
#4083
](
https://github.com/google/ExoPlayer/issues/4083
)
). Such content
is malformed and should be re-encoded.
*
HLS:
*
Fix issue where a new initialization segment, as specified by an
`EXT-X-MAP`
tag in a media playlist, would not be loaded when
encountered during playback
(
[
#9004
](
https://github.com/google/ExoPlayer/issues/9004
)
).
*
UI:
*
Add
`PendingIntent.FLAG_IMMUTABLE`
flag when creating a broadcast intent
in
`PlayerNotificationManager`
. This is required to avoid an error on
...
...
library/hls/src/main/java/com/google/android/exoplayer2/source/hls/HlsMediaChunk.java
View file @
c269a62f
...
...
@@ -139,12 +139,19 @@ import org.checkerframework.checker.nullness.qual.RequiresNonNull;
ParsableByteArray
scratchId3Data
;
if
(
previousChunk
!=
null
)
{
boolean
isSameInitData
=
initDataSpec
==
previousChunk
.
initDataSpec
||
(
initDataSpec
!=
null
&&
previousChunk
.
initDataSpec
!=
null
&&
initDataSpec
.
uri
.
equals
(
previousChunk
.
initDataSpec
.
uri
)
&&
initDataSpec
.
position
==
previousChunk
.
initDataSpec
.
position
);
boolean
isFollowingChunk
=
playlistUrl
.
equals
(
previousChunk
.
playlistUrl
)
&&
previousChunk
.
loadCompleted
;
id3Decoder
=
previousChunk
.
id3Decoder
;
scratchId3Data
=
previousChunk
.
scratchId3Data
;
previousExtractor
=
isFollowingChunk
isSameInitData
&&
isFollowingChunk
&&
!
previousChunk
.
extractorInvalidated
&&
previousChunk
.
discontinuitySequenceNumber
==
discontinuitySequenceNumber
?
previousChunk
.
extractor
...
...
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