Skip to content

Commit

Permalink
Fix double rtsp in the control field #830
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 18, 2024
1 parent 8793c36 commit 4b62a6e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/rtsp/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,9 @@ func (c *Conn) SetupMedia(media *core.Media) (byte, error) {
rawURL += "/"
}
rawURL += media.ID
} else if strings.HasPrefix(rawURL, "rtsp://rtsp://") {
// fix https://github.com/AlexxIT/go2rtc/issues/830
rawURL = rawURL[7:]
}
trackURL, err := urlParse(rawURL)
if err != nil {
Expand Down

0 comments on commit 4b62a6e

Please sign in to comment.