From 7439e2a72c03d9f3463ba6e70ef1e6ae38986f0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Olivier=20Cr=C3=AAte?= Date: Tue, 29 Dec 2020 13:29:05 -0500 Subject: [PATCH] webrtcstats: PLI/FIR/NACK direction are the opposite of the media Change-Id: I0c538c43041406abc1fb5b8727d2f0098594da51 Part-of: --- ext/webrtc/gstwebrtcstats.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/ext/webrtc/gstwebrtcstats.c b/ext/webrtc/gstwebrtcstats.c index 0401f70..452ec90 100644 --- a/ext/webrtc/gstwebrtcstats.c +++ b/ext/webrtc/gstwebrtcstats.c @@ -201,11 +201,11 @@ _get_stats_from_rtp_source_stats (GstWebRTCBin * webrtc, /* RTCOutboundRTPStreamStats */ - if (gst_structure_get_uint (source_stats, "sent-fir-count", &fir)) + if (gst_structure_get_uint (source_stats, "recv-fir-count", &fir)) gst_structure_set (out, "fir-count", G_TYPE_UINT, fir, NULL); - if (gst_structure_get_uint (source_stats, "sent-pli-count", &pli)) + if (gst_structure_get_uint (source_stats, "recv-pli-count", &pli)) gst_structure_set (out, "pli-count", G_TYPE_UINT, pli, NULL); - if (gst_structure_get_uint (source_stats, "sent-nack-count", &nack)) + if (gst_structure_get_uint (source_stats, "recv-nack-count", &nack)) gst_structure_set (out, "nack-count", G_TYPE_UINT, nack, NULL); /* XXX: mediaType, trackId, sliCount, qpSum */ @@ -355,11 +355,11 @@ _get_stats_from_rtp_source_stats (GstWebRTCBin * webrtc, if (gst_structure_get_uint64 (source_stats, "octets-received", &bytes)) gst_structure_set (in, "bytes-received", G_TYPE_UINT64, bytes, NULL); - if (gst_structure_get_uint (source_stats, "recv-fir-count", &fir)) + if (gst_structure_get_uint (source_stats, "sent-fir-count", &fir)) gst_structure_set (in, "fir-count", G_TYPE_UINT, fir, NULL); - if (gst_structure_get_uint (source_stats, "recv-pli-count", &pli)) + if (gst_structure_get_uint (source_stats, "sent-pli-count", &pli)) gst_structure_set (in, "pli-count", G_TYPE_UINT, pli, NULL); - if (gst_structure_get_uint (source_stats, "recv-nack-count", &nack)) + if (gst_structure_get_uint (source_stats, "sent-nack-count", &nack)) gst_structure_set (in, "nack-count", G_TYPE_UINT, nack, NULL); if (jb_stats) gst_structure_set (in, "packets-duplicated", G_TYPE_UINT64, duplicates, -- 2.7.4