rtpsource: Track the seqnum for senders
authorJan Schmidt <jan@centricular.com>
Wed, 23 Nov 2022 05:37:40 +0000 (16:37 +1100)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 23 Nov 2022 10:26:29 +0000 (10:26 +0000)
commitcb225b3682b7e07bf286b73f9a0ef7e8c085b943
treea2b1267ed90d13104ca53276ab4588302b70dd9a
parent843f10f7f99e9e937b6a8bb13310ce7ee29881e7
rtpsource: Track the seqnum for senders

RTP source statistics are tracked for local senders by
treating them as a receiver of their own outbound packets.

Accordingly, track the highest packet seqnum so that the
packets-lost calculation generates a sensible number instead
of always reporting -$number_of_packets_sent

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3454>
subprojects/gst-plugins-good/gst/rtpmanager/rtpsource.c