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

fix: fixed segment timeline parsing when duration is present #34

Merged
merged 2 commits into from
Oct 11, 2018

Conversation

forbesjo
Copy link
Contributor


if (periodAtt.duration) {
periodAttributes.periodDuration = periodAtt.duration;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like we're losing the rest of the periodAtt, which I don't think we intended

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is intended, I'd rather pass along attributes that will be used. That's what caused the bug initially since Period@duration and AdaptationSet@duration have the same name but mean different things.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess I meant if there's some other attribute that should be merged to topLevel. As an alternative, we could prepend the period attributes with period

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment we actually don't even use Period@duration so I could remove this part entirely.

@forbesjo forbesjo merged commit 90feb2d into master Oct 11, 2018
@forbesjo forbesjo deleted the fix-segmenttimeline-2 branch October 11, 2018 18:14
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.

Bug in Segment Timeline segment generation
2 participants