webrtc: Calculate the jitter for remote-inbound-rtp stats
authorJan Schmidt <jan@centricular.com>
Mon, 6 Feb 2023 17:58:04 +0000 (04:58 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sun, 19 Feb 2023 10:43:33 +0000 (10:43 +0000)
Populate the clock-rate in the internal stats structure, so
it can be used by the _get_stats_from_remote_rtp_source_stats()
method to calculate remote receivers' jitter.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3994>

subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcstats.c

index 0491733..db922f0 100644 (file)
@@ -977,6 +977,7 @@ _get_stats_from_pad (GstWebRTCBin * webrtc, GstPad * pad, GstStructure * s)
       ts_stats.source_stats->n_values, ts_stats.stream->transport);
 
   ts_stats.s = s;
+  ts_stats.clock_rate = clock_rate;
 
   transport_stream_find_ssrc_map_item (ts_stats.stream, &ts_stats,
       (FindSsrcMapFunc) webrtc_stats_get_from_transport);