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 and joeyparrish committed Sep 13, 2023
1 parent f1a020b commit c140ea3
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 c140ea3

Please sign in to comment.