Skip to content

Commit

Permalink
fix(DASH): Fix race condition error while switching audio tracks (#5619)
Browse files Browse the repository at this point in the history
Fixes #5614
  • Loading branch information
avelad authored Sep 8, 2023
1 parent 5a88f37 commit 29d9a10
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -868,6 +868,9 @@ shaka.dash.TimelineSegmentIndex = class extends shaka.media.SegmentIndex {
.unscaledPresentationTimeOffset + range.unscaledStart;

const createUrisCb = () => {
if (!this.templateInfo_) {
return [];
}
return shaka.dash.TimelineSegmentIndex
.createUris_(
this.templateInfo_.mediaTemplate,
Expand Down

0 comments on commit 29d9a10

Please sign in to comment.