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 580b3f7 commit fdc1e9f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/dash/dash_parser.js
Expand Up @@ -533,7 +533,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 fdc1e9f

Please sign in to comment.