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

Use reference to Stream

This commit is contained in:
Alexandre Iooss
2020-10-17 13:43:16 +02:00
parent 5b85eed646
commit 5b8c73057b
6 changed files with 30 additions and 18 deletions

View File

@ -39,7 +39,7 @@ func splitHostPort(hostport string) (string, uint16, error) {
}
// Serve SRT server
func Serve(streams map[string]stream.Stream, authBackend auth.Backend, cfg *Options) {
func Serve(streams map[string]*stream.Stream, authBackend auth.Backend, cfg *Options) {
if !cfg.Enabled {
// SRT is not enabled, ignore
return