From: Olivier CrĂȘte Date: Sat, 10 Oct 2020 22:21:19 +0000 (-0400) Subject: webrtcstats: Also return the raw rtpsource stats for more information X-Git-Tag: 1.19.3~507^2~1015 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=23ea95035120809051473f4a524ad2bd129ad6e0;p=platform%2Fupstream%2Fgstreamer.git webrtcstats: Also return the raw rtpsource stats for more information Part-of: --- diff --git a/ext/webrtc/gstwebrtcstats.c b/ext/webrtc/gstwebrtcstats.c index 4505f5b..6145411 100644 --- a/ext/webrtc/gstwebrtcstats.c +++ b/ext/webrtc/gstwebrtcstats.c @@ -258,6 +258,13 @@ _get_stats_from_rtp_source_stats (GstWebRTCBin * webrtc, DOMString encoderImplementation; */ + /* Store the raw stats from GStreamer into the structure for advanced + * information. + */ + gst_structure_set (out, "gst-rtpsource-stats", GST_TYPE_STRUCTURE, + source_stats, NULL); + + _gst_structure_take_structure (s, out_id, &out); _gst_structure_take_structure (s, r_in_id, &r_in); @@ -492,7 +499,13 @@ _get_stats_from_rtp_source_stats (GstWebRTCBin * webrtc, reportsSent */ - gst_structure_free (jb_stats); + /* Store the raw stats from GStreamer into the structure for advanced + * information. + */ + _gst_structure_take_structure (in, "gst-rtpjitterbuffer-stats", &jb_stats); + + gst_structure_set (in, "gst-rtpsource-stats", GST_TYPE_STRUCTURE, + source_stats, NULL); _gst_structure_take_structure (s, in_id, &in); _gst_structure_take_structure (s, r_out_id, &r_out);