Skip to content

Commit

Permalink
fix(DASH): Fix bufferBehind with image tracks regression (shaka-proje…
Browse files Browse the repository at this point in the history
…ct#5210)

A recent change to allow for on-demand segment references (shaka-project#5061) ended up causing a
regression with an older issue (shaka-project#4717), where the presence of an image track overrides
`bufferBehind` behavior.
This fixes the segment template handler to properly account for image tracks, once again.
  • Loading branch information
tykus160 authored May 4, 2023
1 parent bb40d3b commit 2d9f566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dash/segment_template.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ shaka.dash.SegmentTemplate = class {
tsi.evict(availabilityStart);
}

if (info.timeline) {
if (info.timeline && context.adaptationSet.contentType !== 'image') {
const timeline = info.timeline;
context.presentationTimeline.notifyTimeRange(
timeline,
Expand Down

0 comments on commit 2d9f566

Please sign in to comment.