From 3f5d317250cb72d7f1ea700aaf75a8ed805188da Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Sun, 4 Oct 2020 11:25:55 +0200 Subject: [PATCH] Do not use file mode for SRT --- stream/srt/srt.go | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/stream/srt/srt.go b/stream/srt/srt.go index 514c9a2..b3927b7 100644 --- a/stream/srt/srt.go +++ b/stream/srt/srt.go @@ -45,16 +45,12 @@ func splitHostPort(hostport string) (string, uint16) { // Serve SRT server func Serve(cfg *Options, authBackend auth.Backend, forwardingChannel chan Packet) { - // Start SRT in listen mode + // Start SRT in listening mode log.Printf("SRT server listening on %s", cfg.ListenAddress) host, port := splitHostPort(cfg.ListenAddress) - options := map[string]string{ - "transtype": "file", - "mode": "listener", - } - sck := srtgo.NewSrtSocket(host, port, options) + sck := srtgo.NewSrtSocket(host, port, nil) if err := sck.Listen(cfg.MaxClients); err != nil { - log.Fatal("Unable to listen to SRT clients:", err) + log.Fatal("Unable to listen for SRT clients:", err) } // FIXME: Get the stream type