1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2025-06-29 11:00:55 +02:00

Remove cfg and forwardingChannel globals in forwarding package

This commit is contained in:
Alexandre Iooss
2020-10-04 20:16:29 +02:00
parent 4f320a90b5
commit 606542f622
5 changed files with 19 additions and 24 deletions

View File

@ -109,7 +109,7 @@ func main() {
webrtcChannel := make(chan srt.Packet, 65536)
// Start stream, web and monitoring server, and stream forwarding
go forwarding.Serve(cfg.Forwarding, forwardingChannel)
go forwarding.Serve(forwardingChannel, cfg.Forwarding)
go monitoring.Serve(&cfg.Monitoring)
go srt.Serve(&cfg.Srt, authBackend, forwardingChannel, webrtcChannel)
go web.Serve(remoteSdpChan, localSdpChan, &cfg.Web)