Skip to content

Commit

Permalink
perf(DASH): Delete old matchedStreams when using trickmodeVideo (#7306)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Sep 13, 2024
1 parent cbce2dc commit ea25ca3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/util/periods.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,12 @@ shaka.util.PeriodCombiner = class {
videoStream.matchedStreams = videoStream.matchedStreams.filter((s) => {
return s !== stream;
});
if (videoStream.trickModeVideo) {
videoStream.trickModeVideo.matchedStreams =
videoStream.trickModeVideo.matchedStreams.filter((s) => {
return s !== stream;
});
}
}
} else if (stream.type == ContentType.TEXT) {
for (const textStream of this.textStreams_) {
Expand Down

0 comments on commit ea25ca3

Please sign in to comment.