Make setting the segment length optional

This commit is contained in:
Gabe Kangas
2020-07-13 14:39:44 -07:00
parent 51e2e68017
commit d51901e191
3 changed files with 10 additions and 2 deletions

View File

@@ -190,7 +190,7 @@ func NewTranscoder() Transcoder {
transcoder.playlistOutputPath = config.Config.PublicHLSPath
transcoder.input = utils.GetTemporaryPipePath()
transcoder.segmentLengthSeconds = config.Config.VideoSettings.ChunkLengthInSeconds
transcoder.segmentLengthSeconds = config.Config.GetVideoSegmentSecondsLength()
qualities := config.Config.VideoSettings.StreamQualities
if len(qualities) == 0 {