mirror of
https://github.com/aler9/gortsplib
synced 2025-09-27 03:25:52 +08:00
replace OnDecodeError with OnWarning (#177)
This commit is contained in:
@@ -95,7 +95,7 @@ func (ct *clientFormat) writePacketRTPWithNTP(pkt *rtp.Packet, ntp time.Time) er
|
||||
func (ct *clientFormat) readRTPUDP(pkt *rtp.Packet) {
|
||||
packets, missing := ct.udpReorderer.Process(pkt)
|
||||
if missing != 0 {
|
||||
ct.c.OnDecodeError(fmt.Errorf("%d RTP packet(s) lost", missing))
|
||||
ct.c.OnWarning(fmt.Errorf("%d RTP packet(s) lost", missing))
|
||||
// do not return
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user