From 4998d8d4d6166e65c63b91a1530166a325ee1630 Mon Sep 17 00:00:00 2001 From: Saxon Date: Fri, 26 Apr 2019 14:35:25 +0930 Subject: [PATCH] protocol/rtsp/cmd/stream: using NewClient rather than NewSession --- protocol/rtsp/cmd/stream/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocol/rtsp/cmd/stream/main.go b/protocol/rtsp/cmd/stream/main.go index 245d50e7..7b7fea0b 100644 --- a/protocol/rtsp/cmd/stream/main.go +++ b/protocol/rtsp/cmd/stream/main.go @@ -69,7 +69,7 @@ func main() { trackPtr := flag.String("track", "track1", "The track that we would like to receive media from.") flag.Parse() - sess, err := rtsp.NewSession(*rtspServerPtr) + sess, err := rtsp.NewClient(*rtspServerPtr) if err != nil { panic(fmt.Sprintf("creating RTSP session failed with error: %v", err)) }