From 19fec814fae0288ca0988a294a295eda9b3eb8ac Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Wed, 16 Dec 2020 12:15:36 +0100 Subject: [PATCH] fix possible freeze --- go.mod | 2 +- go.sum | 4 ++-- internal/client/client.go | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/go.mod b/go.mod index 7cc0b3de..7bfc96b7 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.15 require ( github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 // indirect github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d // indirect - github.com/aler9/gortsplib v0.0.0-20201215190704-e5b126007572 + github.com/aler9/gortsplib v0.0.0-20201216103733-0aaf4d45d8f3 github.com/davecgh/go-spew v1.1.1 // indirect github.com/fsnotify/fsnotify v1.4.9 github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 diff --git a/go.sum b/go.sum index ed71fd80..4eab0a3d 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751 h1:JYp7IbQjafo github.com/alecthomas/template v0.0.0-20190718012654-fb15b899a751/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d h1:UQZhZ2O0vMHr2cI+DC1Mbh0TJxzA3RcLoMsFw+aXw7E= github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho= -github.com/aler9/gortsplib v0.0.0-20201215190704-e5b126007572 h1:7tZCOaqiBURhVXE0xR6jNz6T7UX/LUKUKl0qsZBQwGU= -github.com/aler9/gortsplib v0.0.0-20201215190704-e5b126007572/go.mod h1:8P09VjpiPJFyfkVosyF5/TY82jNwkMN165NS/7sc32I= +github.com/aler9/gortsplib v0.0.0-20201216103733-0aaf4d45d8f3 h1:MhU9kTL1YIAFbXNDYXzYWDvSfXnPaJyvf0Z0gAuEubE= +github.com/aler9/gortsplib v0.0.0-20201216103733-0aaf4d45d8f3/go.mod h1:8P09VjpiPJFyfkVosyF5/TY82jNwkMN165NS/7sc32I= github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= diff --git a/internal/client/client.go b/internal/client/client.go index f3bdd1df..b95cf88f 100644 --- a/internal/client/client.go +++ b/internal/client/client.go @@ -462,7 +462,7 @@ func (c *Client) run() { rtcpPort: (*th.ClientPorts)[1], } - th := &headers.Transport{ + th := headers.Transport{ Protocol: gortsplib.StreamProtocolUDP, Delivery: func() *base.StreamDelivery { v := base.StreamDeliveryUnicast @@ -530,7 +530,7 @@ func (c *Client) run() { interleavedIds := [2]int{trackID * 2, (trackID * 2) + 1} - th := &headers.Transport{ + th := headers.Transport{ Protocol: gortsplib.StreamProtocolTCP, InterleavedIds: &interleavedIds, } @@ -591,7 +591,7 @@ func (c *Client) run() { rtcpPort: (*th.ClientPorts)[1], } - th := &headers.Transport{ + th := headers.Transport{ Protocol: gortsplib.StreamProtocolUDP, Delivery: func() *base.StreamDelivery { v := base.StreamDeliveryUnicast @@ -650,7 +650,7 @@ func (c *Client) run() { rtcpPort: 0, } - ht := &headers.Transport{ + ht := headers.Transport{ Protocol: gortsplib.StreamProtocolTCP, InterleavedIds: &interleavedIds, }