client: simplify Setup()

This commit is contained in:
aler9
2021-11-12 17:26:42 +01:00
committed by Alessandro Ros
parent 3ead94477f
commit 08ab7f87ac
5 changed files with 21 additions and 19 deletions

View File

@@ -5,7 +5,6 @@ import (
"github.com/aler9/gortsplib"
"github.com/aler9/gortsplib/pkg/base"
"github.com/aler9/gortsplib/pkg/headers"
"github.com/aler9/gortsplib/pkg/rtph264"
"github.com/pion/rtp"
)
@@ -85,7 +84,7 @@ func main() {
// setup all tracks
for _, t := range tracks {
_, err := c.Setup(headers.TransportModePlay, baseURL, t, 0, 0)
_, err := c.Setup(true, baseURL, t, 0, 0)
if err != nil {
panic(err)
}