update docs

This commit is contained in:
aler9
2022-04-21 17:02:42 +02:00
parent 3a44c108c1
commit c759021124

View File

@@ -1293,10 +1293,6 @@ func (c *Client) doAnnounce(u *base.URL, tracks Tracks) (*base.Response, error)
return nil, err return nil, err
} }
// in case of ANNOUNCE, the base URL doesn't have a trailing slash.
// (tested with ffmpeg and GStreamer)
baseURL := u.Clone()
tracks.setControls() tracks.setControls()
res, err := c.do(&base.Request{ res, err := c.do(&base.Request{
@@ -1317,7 +1313,7 @@ func (c *Client) doAnnounce(u *base.URL, tracks Tracks) (*base.Response, error)
} }
} }
c.streamBaseURL = baseURL c.streamBaseURL = u.Clone()
c.state = clientStatePreRecord c.state = clientStatePreRecord
return res, nil return res, nil