mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
rename Read / Write into Unmarshal / Marshal when needed
Read() / Write() are used to read / write from streams, while Unmarshal() / Marshal() are used to decode / encode from / to bytes.
This commit is contained in:
@@ -840,7 +840,8 @@ func TestTrackURL(t *testing.T) {
|
||||
},
|
||||
} {
|
||||
t.Run(ca.name, func(t *testing.T) {
|
||||
tracks, _, err := ReadTracks(ca.sdp, false)
|
||||
var tracks Tracks
|
||||
_, err := tracks.Unmarshal(ca.sdp, false)
|
||||
require.NoError(t, err)
|
||||
ur, err := tracks[0].url(ca.baseURL)
|
||||
require.NoError(t, err)
|
||||
|
Reference in New Issue
Block a user