mirror of
https://github.com/jech/galene.git
synced 2024-11-22 16:45:58 +01:00
Don't complain about rate limiting.
This commit is contained in:
parent
4a526b4133
commit
f3b58bbf5c
1 changed files with 6 additions and 5 deletions
11
rtpconn.go
11
rtpconn.go
|
@ -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)
|
||||||
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 {
|
||||||
|
|
Loading…
Reference in a new issue