1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-10 02:35:58 +01:00

Don't pass group to rtcpDownListener.

This commit is contained in:
Juliusz Chroboczek 2020-05-07 10:29:48 +02:00
parent e205596775
commit 7c83f2fa5a

View file

@ -598,7 +598,7 @@ func addDownTrack(c *client, id string, remoteTrack *upTrack, remoteConn *upConn
conn.tracks = append(conn.tracks, track)
remoteTrack.addLocal(track)
go rtcpDownListener(c.group, conn, track, s)
go rtcpDownListener(conn, track, s)
return conn, s, nil
}
@ -638,7 +638,7 @@ func (track *downTrack) updateRate(loss uint8, now uint64) {
track.maxLossBitrate.Set(rate, now)
}
func rtcpDownListener(g *group, conn *downConnection, track *downTrack, s *webrtc.RTPSender) {
func rtcpDownListener(conn *downConnection, track *downTrack, s *webrtc.RTPSender) {
for {
ps, err := s.ReadRTCP()
if err != nil {