From b89bb8d08e312dd16d37070825041fa413f865d9 Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 12 Nov 2021 18:08:21 +0100 Subject: [PATCH] cleanup examples --- examples/client-query/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/client-query/main.go b/examples/client-query/main.go index 169c3ea0..c0522581 100644 --- a/examples/client-query/main.go +++ b/examples/client-query/main.go @@ -12,13 +12,13 @@ import ( // 2. get and print informations about tracks published on a path. func main() { - u, err := base.ParseURL("rtsp://myserver/mypath") + c := gortsplib.Client{} + + u, err := base.ParseURL("rtsp://localhost:8554/mypath") if err != nil { panic(err) } - c := gortsplib.Client{} - err = c.Start(u.Scheme, u.Host) if err != nil { panic(err)