Fix RTSP tracks list in info json

This commit is contained in:
Alexey Khit
2023-01-13 13:31:22 +03:00
parent 0601091772
commit fca6c87b2c
+1 -1
View File
@@ -119,7 +119,7 @@ func (c *Conn) MarshalJSON() ([]byte, error) {
v[k] = media.String()
}
for i, track := range c.tracks {
k := "track:" + strconv.Itoa(int(i>>1))
k := "track:" + strconv.Itoa(i)
v[k] = track.String()
}
//for i, track := range c.tracks {