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

Don't complain about rate limiting.

This commit is contained in:
Juliusz Chroboczek 2020-06-09 14:57:37 +02:00
parent 4a526b4133
commit f3b58bbf5c

View file

@ -648,10 +648,11 @@ func writeLoop(conn *rtpUpConnection, track *rtpUpTrack, ch <-chan packetIndex)
if err == ErrUnsupportedFeedback { if err == ErrUnsupportedFeedback {
err := conn.sendPLI(track) err := conn.sendPLI(track)
if err != nil && if err != nil &&
err != ErrUnsupportedFeedback { err != ErrUnsupportedFeedback &&
err != ErrRateLimited {
log.Printf("sendPLI: %v", err) log.Printf("sendPLI: %v", err)
} }
} else if err != nil { } else if err != nil && err != ErrRateLimited {
log.Printf("sendFIR: %v", err) log.Printf("sendFIR: %v", err)
} }
firSent = true firSent = true
@ -1018,7 +1019,7 @@ func rtcpDownListener(conn *rtpDownConnection, track *rtpDownTrack, s *webrtc.RT
continue continue
} }
err := remote.sendPLI(rt) err := remote.sendPLI(rt)
if err != nil { if err != nil && err != ErrRateLimited {
log.Printf("sendPLI: %v", err) log.Printf("sendPLI: %v", err)
} }
case *rtcp.FullIntraRequest: case *rtcp.FullIntraRequest:
@ -1054,7 +1055,7 @@ func rtcpDownListener(conn *rtpDownConnection, track *rtpDownTrack, s *webrtc.RT
err := remote.sendFIR(rt, increment) err := remote.sendFIR(rt, increment)
if err == ErrUnsupportedFeedback { if err == ErrUnsupportedFeedback {
err := remote.sendPLI(rt) err := remote.sendPLI(rt)
if err != nil { if err != nil && err != ErrRateLimited {
log.Printf("sendPLI: %v", err) log.Printf("sendPLI: %v", err)
} }
} else if err != nil { } else if err != nil {