Skip to content

Commit

Permalink
https://github.com/google/ExoPlayer/pull/5058/commits/ac31a9a444f053e…
Browse files Browse the repository at this point in the history
…0ad59d30e1efe0ce05f7b1e91

google#5059
keep hls chunk source from getting redundant playlists
  • Loading branch information
ninjapretzel committed Nov 8, 2018
1 parent bdcea08 commit 4794454
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,8 @@ public MediaChunkIterator[] createMediaChunkIterators(
for (int i = 0; i < chunkIterators.length; i++) {
int variantIndex = trackSelection.getIndexInTrackGroup(i);
HlsUrl variantUrl = variants[variantIndex];
if (!playlistTracker.isSnapshotValid(variantUrl)) {
if (!playlistTracker.isSnapshotValid(variantUrl)
|| trackSelection.getSelectedIndexInTrackGroup() != variantIndex) {
chunkIterators[i] = MediaChunkIterator.EMPTY;
continue;
}
Expand Down

0 comments on commit 4794454

Please sign in to comment.