Commit f3b58bbf authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Don't complain about rate limiting.

parent 4a526b41
...@@ -621,7 +621,7 @@ func writeLoop(conn *rtpUpConnection, track *rtpUpTrack, ch <-chan packetIndex) ...@@ -621,7 +621,7 @@ func writeLoop(conn *rtpUpConnection, track *rtpUpTrack, ch <-chan packetIndex)
var delay time.Duration var delay time.Duration
if len(local) > 0 { if len(local) > 0 {
delay = rtptime.ToDuration( delay = rtptime.ToDuration(
uint64(pi.delay / uint32(len(local))), uint64(pi.delay/uint32(len(local))),
rtptime.JiffiesPerSec, rtptime.JiffiesPerSec,
) )
} }
...@@ -648,10 +648,11 @@ func writeLoop(conn *rtpUpConnection, track *rtpUpTrack, ch <-chan packetIndex) ...@@ -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 ...@@ -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 ...@@ -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 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment