From ebc723d9d43926126e6a800ff63b192092025780 Mon Sep 17 00:00:00 2001 From: Alessandro Ros Date: Fri, 31 Mar 2023 11:52:37 +0200 Subject: [PATCH] update gortsplib (#1611) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- go.mod | 2 +- go.sum | 4 ++-- internal/core/core_test.go | 4 +++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/go.mod b/go.mod index b4324cf7..6cb750b7 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( code.cloudfoundry.org/bytefmt v0.0.0 github.com/alecthomas/kong v0.7.1 - github.com/aler9/gortsplib/v2 v2.2.0 + github.com/aler9/gortsplib/v2 v2.2.2 github.com/asticode/go-astits v1.11.0 github.com/bluenviron/gohlslib v0.0.0-20230319232056-d55d76265613 github.com/fsnotify/fsnotify v1.6.0 diff --git a/go.sum b/go.sum index 508cf054..f7afc6ee 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/alecthomas/assert/v2 v2.1.0 h1:tbredtNcQnoSd3QBhQWI7QZ3XHOVkw1Moklp2o github.com/alecthomas/kong v0.7.1 h1:azoTh0IOfwlAX3qN9sHWTxACE2oV8Bg2gAwBsMwDQY4= github.com/alecthomas/kong v0.7.1/go.mod h1:n1iCIO2xS46oE8ZfYCNDqdR0b0wZNrXAIAqro/2132U= github.com/alecthomas/repr v0.1.0 h1:ENn2e1+J3k09gyj2shc0dHr/yjaWSHRlrJ4DPMevDqE= -github.com/aler9/gortsplib/v2 v2.2.0 h1:bM2LZG5owtvA2DZLUvwN15Erv/hN6Kv5KBdjlqHjlVI= -github.com/aler9/gortsplib/v2 v2.2.0/go.mod h1:Eegw8PWa8hNYXiYMlbK3RX1gr7+r25MxniAPGA+kKUE= +github.com/aler9/gortsplib/v2 v2.2.2 h1:tTw8pdKSOEjlZjjE1S4ftXPHJkYOqjNNv3hjQ0Nto9M= +github.com/aler9/gortsplib/v2 v2.2.2/go.mod h1:k6uBVHGwsIc/0L5SLLqWwi6bSJUb4VR0HfvncyHlKQI= github.com/aler9/writerseeker v0.0.0-20220601075008-6f0e685b9c82 h1:9WgSzBLo3a9ToSVV7sRTBYZ1GGOZUpq4+5H3SN0UZq4= github.com/aler9/writerseeker v0.0.0-20220601075008-6f0e685b9c82/go.mod h1:qsMrZCbeBf/mCLOeF16KDkPu4gktn/pOWyaq1aYQE7U= github.com/asticode/go-astikit v0.30.0 h1:DkBkRQRIxYcknlaU7W7ksNfn4gMFsB0tqMJflxkRsZA= diff --git a/internal/core/core_test.go b/internal/core/core_test.go index 48562626..a7685fbf 100644 --- a/internal/core/core_test.go +++ b/internal/core/core_test.go @@ -281,10 +281,12 @@ func main() { err = desc.Unmarshal(res.Body) require.NoError(t, err) control, _ = desc.MediaDescriptions[0].Attribute("control") + } else { + control = "rtsp://localhost:8554/ondemand/" } if ca == "setup" || ca == "describe and setup" { - u, err := url.Parse("rtsp://localhost:8554/ondemand/" + control) + u, err := url.Parse(control) require.NoError(t, err) byts, _ := base.Request{