replace OnDecodeError with OnWarning (#177)

This commit is contained in:
Alessandro Ros
2023-01-23 12:54:57 +01:00
committed by GitHub
parent 14fcde1c69
commit a2d6ce8af6
12 changed files with 69 additions and 44 deletions

View File

@@ -52,7 +52,7 @@ func (sf *serverSessionFormat) stop() {
func (sf *serverSessionFormat) readRTPUDP(pkt *rtp.Packet, now time.Time) {
packets, missing := sf.udpReorderer.Process(pkt)
if missing != 0 {
onDecodeError(sf.sm.ss, fmt.Errorf("%d RTP packet(s) lost", missing))
onWarning(sf.sm.ss, fmt.Errorf("%d RTP packet(s) lost", missing))
// do not return
}