MCPcopy
hub / github.com/q191201771/lal / stopHlsIfNeeded

Method stopHlsIfNeeded

pkg/logic/group__record_hls.go:29–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27}
28
29func (group *Group) stopHlsIfNeeded() {
30 if !group.config.HlsConfig.Enable && !group.config.HlsConfig.EnableHttps {
31 return
32 }
33
34 if group.hlsMuxer != nil {
35 group.hlsMuxer.Dispose()
36 group.observer.CleanupHlsIfNeeded(group.appName, group.streamName, group.hlsMuxer.OutPath())
37 group.hlsMuxer = nil
38 }
39}

Callers 1

delInMethod · 0.95

Calls 3

OutPathMethod · 0.80
DisposeMethod · 0.65
CleanupHlsIfNeededMethod · 0.65

Tested by

no test coverage detected