srt: Add more fields to application/x-srt-statistics

In order to see how many packets where retransmitted and how many was
dropped we add some new fields.

Please see https://github.com/Haivision/srt/blob/master/docs/API/statistics.md

For details about the new fields.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5322>
This commit is contained in:
Jonas K Danielsson 2023-09-13 10:42:45 +02:00 committed by GStreamer Marge Bot
parent 900a9c47be
commit e7ae5f0995

View file

@ -2050,6 +2050,10 @@ get_stats_for_srtsock (GstSRTObject * srtobject, SRTSOCKET srtsock)
"negotiated-latency-ms", G_TYPE_INT, stats.msSndTsbPdDelay,
"packets-received", G_TYPE_INT64, stats.pktRecvTotal,
"packets-received-lost", G_TYPE_INT, stats.pktRcvLossTotal,
/* number of retransmitted packets registered at receiver side */
"packets-received-retransmitted", G_TYPE_INT, stats.pktRcvRetrans,
/* number of dropped packets by the receiver */
"packets-received-dropped", G_TYPE_INT, stats.pktRcvDropTotal,
/* number of sent ACK packets */
"packet-ack-sent", G_TYPE_INT, stats.pktSentACK,
/* number of sent NAK packets */