Skip to content

Commit

Permalink
fix parsing and generating EXT-X-PLAYLIST-TYPE (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Gyoung-Su authored Nov 13, 2023
1 parent e7092f1 commit 5715193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/playlist/media.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ func (m Media) Marshal() ([]byte, error) {
}

if m.PlaylistType != nil {
ret += "#EXT-X-PLAYLIST-TYPE=" + string(*m.PlaylistType) + "\n"
ret += "#EXT-X-PLAYLIST-TYPE:" + string(*m.PlaylistType) + "\n"
}

if m.Map != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/playlist/media_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ main.mp4
#EXT-X-INDEPENDENT-SEGMENTS
#EXT-X-TARGETDURATION:6
#EXT-X-MEDIA-SEQUENCE:1
#EXT-X-PLAYLIST-TYPE=VOD
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-MAP:URI="main.mp4",BYTERANGE=721@0
#EXTINF:6.00000,
#EXT-X-BYTERANGE:5874288@721
Expand Down

0 comments on commit 5715193

Please sign in to comment.