Skip to content

Commit

Permalink
fix(DASH): Clone EventStream nodes to reduce memory consumption (#7285)
Browse files Browse the repository at this point in the history
Fixes #7148
  • Loading branch information
tykus160 authored and avelad committed Sep 11, 2024
1 parent 0189b0e commit d1351bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -2889,7 +2889,7 @@ shaka.dash.DashParser = class {
endTime: endTime,
id: eventNode.attributes['id'] || '',
eventElement: TXml.txmlNodeToDomElement(eventNode),
eventNode: eventNode,
eventNode: TXml.cloneNode(eventNode),
};

this.playerInterface_.onTimelineRegionAdded(region);
Expand Down

0 comments on commit d1351bf

Please sign in to comment.