Skip to content

Commit

Permalink
Fix playlist append error after 5 segments
Browse files Browse the repository at this point in the history
  • Loading branch information
Thor77 committed Nov 26, 2019
1 parent b25c1a3 commit 88a3099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func main() {
log.Printf("Successfully wrote segment %s\n", segmentName)

// update playlist
playlist.Append(segmentName, segmentLength.Seconds(), "")
playlist.Slide(segmentName, segmentLength.Seconds(), "")
playlistFile, err := os.Create(fmt.Sprintf("%s.m3u8", streamName))
if err != nil {
log.Fatalln(err)
Expand Down

0 comments on commit 88a3099

Please sign in to comment.