Skip to content

Commit

Permalink
fix bug in encodeAlternatives
Browse files Browse the repository at this point in the history
  • Loading branch information
JackDunham committed Aug 9, 2024
1 parent 48c88c6 commit d8291b0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,13 +282,6 @@ func (p *MasterPlaylist) encodeAlternatives(altType string) {
})

for _, alt := range orderedAlts {
// Make sure that we only write out an alternative once
altKey := fmt.Sprintf("%s-%s-%s-%s", alt.Type, alt.GroupId, alt.Name, alt.Language)
if altsWritten[altKey] || alt.Type != altType {
continue
}
altsWritten[altKey] = true

p.buf.WriteString("#EXT-X-MEDIA:")
if alt.Type != "" {
p.buf.WriteString("TYPE=") // Type should not be quoted
Expand Down

0 comments on commit d8291b0

Please sign in to comment.