From e7ae5f09954625cdf49b2c962c2598650e48fa8e Mon Sep 17 00:00:00 2001 From: Jonas K Danielsson Date: Wed, 13 Sep 2023 10:42:45 +0200 Subject: [PATCH] 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: --- subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c index 71af3cb004..1b003e4c43 100644 --- a/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c +++ b/subprojects/gst-plugins-bad/ext/srt/gstsrtobject.c @@ -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 */