Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

:bug: use currentBroadcast for playlist overwrites (#1149)

Jannikeb291bfda5a7
diff --git a/core/streamState.go b/core/streamState.go
index 7f409ff7a0..d88c498958 100644
--- a/core/streamState.go
+++ b/core/streamState.go
@@ -88,7 +88,7 @@ func SetStreamAsDisconnected() {
_yp.Stop()
}
- for index := range data.GetStreamOutputVariants() {
+ for index := range _currentBroadcast.OutputSettings {
playlistFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/stream.m3u8"), index)
segmentFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/%s"), index, offlineFilename)