Fix double rtsp in the control field #830

This commit is contained in:
Alex X
2024-01-18 17:29:22 +03:00
parent 8793c36364
commit 4b62a6e34f
+3
View File
@@ -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 {