mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Don't pass group to rtcpDownListener.
This commit is contained in:
parent
e205596775
commit
7c83f2fa5a
1 changed files with 2 additions and 2 deletions
|
@ -598,7 +598,7 @@ func addDownTrack(c *client, id string, remoteTrack *upTrack, remoteConn *upConn
|
||||||
conn.tracks = append(conn.tracks, track)
|
conn.tracks = append(conn.tracks, track)
|
||||||
remoteTrack.addLocal(track)
|
remoteTrack.addLocal(track)
|
||||||
|
|
||||||
go rtcpDownListener(c.group, conn, track, s)
|
go rtcpDownListener(conn, track, s)
|
||||||
|
|
||||||
return conn, s, nil
|
return conn, s, nil
|
||||||
}
|
}
|
||||||
|
@ -638,7 +638,7 @@ func (track *downTrack) updateRate(loss uint8, now uint64) {
|
||||||
track.maxLossBitrate.Set(rate, now)
|
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 {
|
for {
|
||||||
ps, err := s.ReadRTCP()
|
ps, err := s.ReadRTCP()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue