From edc777ae1b2153f13f6b32fd02446b6976e368c1 Mon Sep 17 00:00:00 2001 From: Jannik Date: Fri, 2 Jul 2021 03:27:56 +0200 Subject: [PATCH] :bug: use currentBroadcast for playlist overwrites (#1149) Fixes #1147 since it looks into currentBroadcast and does not use the configuration of the next stream. --- core/streamState.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/streamState.go b/core/streamState.go index 7f409ff7a..d88c49895 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)