mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 15:16:51 +08:00
replace OnDecodeError with OnWarning (#177)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user