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)) }