Skip to content

Commit

Permalink
fix(DASH): Clone closedCaptions map in PeriodCombiner output stream (#…
Browse files Browse the repository at this point in the history
…7309)

Fixes #7303
  • Loading branch information
tykus160 authored Sep 13, 2024
1 parent f556d36 commit 873bb24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/util/periods.js
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,8 @@ shaka.util.PeriodCombiner = class {
clone.segmentIndex = null;
clone.emsgSchemeIdUris = [];
clone.keyIds = new Set();
clone.closedCaptions = null;
clone.closedCaptions = stream.closedCaptions ?
new Map(stream.closedCaptions) : null;
clone.trickModeVideo = null;

return clone;
Expand All @@ -859,7 +860,8 @@ shaka.util.PeriodCombiner = class {
clone.keyIds = new Set();
clone.segments = [];
clone.variantIds = [];
clone.closedCaptions = null;
clone.closedCaptions = streamDb.closedCaptions ?
new Map(streamDb.closedCaptions) : null;

return clone;
}
Expand Down

0 comments on commit 873bb24

Please sign in to comment.