Skip to content

Commit 0b447fd

Browse files
committedMar 7, 2024
Update module github.com/pion/sdp to v3.0.8
1 parent 2828381 commit 0b447fd

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed
 

‎go.mod

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ require (
1414
github.com/pion/rtcp v1.2.12
1515
github.com/pion/rtp v1.8.3
1616
github.com/pion/sctp v1.8.12
17-
github.com/pion/sdp/v3 v3.0.6
17+
github.com/pion/sdp/v3 v3.0.8
1818
github.com/pion/srtp/v2 v2.0.18
1919
github.com/pion/stun v0.6.1
2020
github.com/pion/transport/v2 v2.2.3
2121
github.com/sclevine/agouti v3.0.0+incompatible
22-
github.com/stretchr/testify v1.8.4
22+
github.com/stretchr/testify v1.9.0
2323
golang.org/x/net v0.20.0
2424
)

‎go.sum

+5-3
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ github.com/pion/rtp v1.8.3/go.mod h1:pBGHaFt/yW7bf1jjWAoUjpSNoDnw98KTMg+jWWvziqU
6363
github.com/pion/sctp v1.8.5/go.mod h1:SUFFfDpViyKejTAdwD1d/HQsCu+V/40cCs2nZIvC3s0=
6464
github.com/pion/sctp v1.8.12 h1:2VX50pedElH+is6FI+OKyRTeN5oy4mrk2HjnGa3UCmY=
6565
github.com/pion/sctp v1.8.12/go.mod h1:cMLT45jqw3+jiJCrtHVwfQLnfR0MGZ4rgOJwUOIqLkI=
66-
github.com/pion/sdp/v3 v3.0.6 h1:WuDLhtuFUUVpTfus9ILC4HRyHsW6TdugjEX/QY9OiUw=
67-
github.com/pion/sdp/v3 v3.0.6/go.mod h1:iiFWFpQO8Fy3S5ldclBkpXqmWy02ns78NOKoLLL0YQw=
66+
github.com/pion/sdp/v3 v3.0.8 h1:yd/wkrS0nzXEAb+uwv1TL3SG/gzsTiXHVOtXtD7EKl0=
67+
github.com/pion/sdp/v3 v3.0.8/go.mod h1:B5xmvENq5IXJimIO4zfp6LAe1fD9N+kFv+V/1lOdz8M=
6868
github.com/pion/srtp/v2 v2.0.18 h1:vKpAXfawO9RtTRKZJbG4y0v1b11NZxQnxRl85kGuUlo=
6969
github.com/pion/srtp/v2 v2.0.18/go.mod h1:0KJQjA99A6/a0DOVTu1PhDSw0CXF2jTkqOoMg3ODqdA=
7070
github.com/pion/stun v0.6.1 h1:8lp6YejULeHBF8NmV8e2787BogQhduZugh5PdhDyyN4=
@@ -86,13 +86,15 @@ github.com/sclevine/agouti v3.0.0+incompatible/go.mod h1:b4WX9W9L1sfQKXeJf1mUTLZ
8686
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
8787
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
8888
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
89+
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
8990
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
9091
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
9192
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
9293
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
9394
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
94-
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
9595
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
96+
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
97+
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
9698
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
9799
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
98100
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=

‎peerconnection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ func (pc *PeerConnection) SetLocalDescription(desc SessionDescription) error {
994994
}
995995

996996
desc.parsed = &sdp.SessionDescription{}
997-
if err := desc.parsed.Unmarshal([]byte(desc.SDP)); err != nil {
997+
if err := desc.parsed.UnmarshalString(desc.SDP); err != nil {
998998
return err
999999
}
10001000
if err := pc.setDescription(&desc, stateChangeOpSetLocal); err != nil {

‎sessiondescription.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ type SessionDescription struct {
1919
// Unmarshal is a helper to deserialize the sdp
2020
func (sd *SessionDescription) Unmarshal() (*sdp.SessionDescription, error) {
2121
sd.parsed = &sdp.SessionDescription{}
22-
err := sd.parsed.Unmarshal([]byte(sd.SDP))
22+
err := sd.parsed.UnmarshalString(sd.SDP)
2323
return sd.parsed, err
2424
}

0 commit comments

Comments
 (0)
Please sign in to comment.