mirror of
https://github.com/aler9/gortsplib
synced 2025-10-07 08:01:14 +08:00
expose number of lost packets without passing through an error (#735)
This commit is contained in:
@@ -23,5 +23,6 @@ func New() *Reorderer {
|
||||
// Process processes a RTP packet.
|
||||
// It returns a sequence of ordered packets and the number of lost packets.
|
||||
func (r *Reorderer) Process(pkt *rtp.Packet) ([]*rtp.Packet, uint) {
|
||||
return (*rtpreorderer.Reorderer)(r).Process(pkt)
|
||||
v1, v2 := (*rtpreorderer.Reorderer)(r).Process(pkt)
|
||||
return v1, uint(v2)
|
||||
}
|
||||
|
Reference in New Issue
Block a user