Skip to content

Commit

Permalink
Merge pull request #3 from jwplayer/fix/ext-x-media-forced-attribute
Browse files Browse the repository at this point in the history
fixed write FORCED attribute unquoted. E.g. FORCED=NO
  • Loading branch information
rogerpales authored May 18, 2023
2 parents 4486502 + 43a1571 commit b2d4505
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,8 @@ func (p *MasterPlaylist) Encode() *bytes.Buffer {
p.buf.WriteRune('"')
}
if alt.Forced != "" {
p.buf.WriteString(",FORCED=\"")
p.buf.WriteString(",FORCED=")
p.buf.WriteString(alt.Forced)
p.buf.WriteRune('"')
}
if alt.Characteristics != "" {
p.buf.WriteString(",CHARACTERISTICS=\"")
Expand Down

0 comments on commit b2d4505

Please sign in to comment.