Skip to content

Commit

Permalink
fix: Only append to the buffer init segments when the segment is inde…
Browse files Browse the repository at this point in the history
…pendent (#5921)
  • Loading branch information
avelad committed Nov 22, 2023
1 parent c62e38c commit 09f2a2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/media/streaming_engine.js
Expand Up @@ -1792,7 +1792,7 @@ shaka.media.StreamingEngine = class {
reference.initSegmentReference, mediaState.lastInitSegmentReference)) {
mediaState.lastInitSegmentReference = reference.initSegmentReference;

if (reference.initSegmentReference) {
if (reference.isIndependent() && reference.initSegmentReference) {
shaka.log.v1(logPrefix, 'fetching init segment');

const fetchInit =
Expand Down

0 comments on commit 09f2a2e

Please sign in to comment.