Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getSegmentForTime is returning indicies off by one segment #3122

Merged

Conversation

robertbryer
Copy link
Contributor

When replacement fragments are requested by ScheduleController, they flow into the getSegmentsForTime function in the templateSegmentsGetter. This function is returning indicies off by one, so replacement fragments would be ordered for the segment before what was wanted.

To reproduce:
Invoke a replacement by suddenly throttling and getting the abandon rule to abandon a high quality segment.
See that the replacement segment ordered is one segment early.

This PR removes the -1 that made the calculation from time incorrect.

@epiclabsDASH epiclabsDASH added this to the 3.0.1 milestone Nov 27, 2019
@epiclabsDASH epiclabsDASH merged commit fde839c into Dash-Industry-Forum:development Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants