Skip to content

Commit

Permalink
fix: Fix creation of new Stream object for each manifest request in D…
Browse files Browse the repository at this point in the history
…ASH Live when using CEA (#5674)

Fixes #5672
  • Loading branch information
avelad authored and joeyparrish committed Oct 4, 2023
1 parent cb9789e commit d9223ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,10 @@ shaka.dash.DashParser = class {
// Just update the variants and text streams, which may change as periods
// are added or removed.
this.manifest_.variants = this.periodCombiner_.getVariants();
this.manifest_.textStreams = this.periodCombiner_.getTextStreams();
const textStreams = this.periodCombiner_.getTextStreams();
if (textStreams.length > 0) {
this.manifest_.textStreams = textStreams;
}
this.manifest_.imageStreams = this.periodCombiner_.getImageStreams();

// Re-filter the manifest. This will check any configured restrictions on
Expand Down

0 comments on commit d9223ee

Please sign in to comment.