Skip to content

Commit

Permalink
clipping: temporarily comment out function to make linter pass
Browse files Browse the repository at this point in the history
This function will be used with a later PR.
  • Loading branch information
emranemran committed Aug 3, 2023
1 parent 68d7b0c commit 1f84f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions video/clip.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// Function to calculate the total duration of the HLS manifest
func calculateTotalDuration(manifest *m3u8.MediaPlaylist) float64 {
/*func calculateTotalDuration(manifest *m3u8.MediaPlaylist) float64 {
if manifest == nil {
return 0.0
}
Expand All @@ -20,7 +20,7 @@ func calculateTotalDuration(manifest *m3u8.MediaPlaylist) float64 {
totalDuration += segment.Duration
}
return totalDuration
}
}*/

// Checks if a given segment already exists in a slice of MediaSegments. Mainly used to ensure
// we don't add duplicate segments when the playhead start/stop time falls in the same segment.
Expand Down

0 comments on commit 1f84f28

Please sign in to comment.