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

Fixed unnecessary playlist version change in SetDefaultKey #24

Merged
merged 1 commit into from
Aug 22, 2015

Conversation

juliancooper
Copy link
Contributor

As defined in the HLS V5 spec:

A Playlist MUST indicate protocol version 5 or higher if it contains:
o The KEYFORMAT and KEYFORMATVERSIONS attributes of the EXT-X-KEY
tag.

However any HLS version > 2 is compatible with EXT-X-KEY tags containing only METHOD, URI and IV attributes.

It looks like this behaviour was fixed for the SetKey function, but not SetDefaultKey. I added the fix to SetDefaultKey and a couple of tests around it.

I also changed the behaviour of SetDefaultKey to return an error value to make it more resemble SetKey

@grafov grafov added the bug label Aug 20, 2015
@grafov grafov self-assigned this Aug 20, 2015
@grafov
Copy link
Owner

grafov commented Aug 22, 2015

Thank you for this fix!

grafov added a commit that referenced this pull request Aug 22, 2015
Fix unnecessary playlist version change in SetDefaultKey
@grafov grafov merged commit 8a35b4b into grafov:master Aug 22, 2015
grafov added a commit that referenced this pull request Nov 22, 2016
Fix unnecessary playlist version change in SetDefaultKey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants