🐛 use currentBroadcast for playlist overwrites (#1149)

Fixes #1147 since it looks into currentBroadcast and does not use the configuration of the next stream.
This commit is contained in:
Jannik
2021-07-02 03:27:56 +02:00
committed by GitHub
parent 3b6ef78ff7
commit edc777ae1b

View File

@@ -88,7 +88,7 @@ func SetStreamAsDisconnected() {
_yp.Stop() _yp.Stop()
} }
for index := range data.GetStreamOutputVariants() { for index := range _currentBroadcast.OutputSettings {
playlistFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/stream.m3u8"), index) playlistFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/stream.m3u8"), index)
segmentFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/%s"), index, offlineFilename) segmentFilePath := fmt.Sprintf(filepath.Join(config.PrivateHLSStoragePath, "%d/%s"), index, offlineFilename)