diff options
author | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-12-29 13:29:05 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2020-12-29 15:07:03 -0500 |
commit | 51ef4557b59bbdaea87f2fe6a5865b011c138a2e (patch) | |
tree | 20e79ab0e97ea89a6a8c29001a70cc364b3126dc /ext/webrtc | |
parent | b258144c1686b648fb5bda0ca56a2c6186346853 (diff) | |
download | gstreamer-plugins-bad-51ef4557b59bbdaea87f2fe6a5865b011c138a2e.tar.gz |
webrtcstats: PLI/FIR/NACK direction are the opposite of the media
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1924>
Diffstat (limited to 'ext/webrtc')
-rw-r--r-- | ext/webrtc/gstwebrtcstats.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/webrtc/gstwebrtcstats.c b/ext/webrtc/gstwebrtcstats.c index 498304908..e42ded48a 100644 --- a/ext/webrtc/gstwebrtcstats.c +++ b/ext/webrtc/gstwebrtcstats.c @@ -239,11 +239,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 */ @@ -391,11 +391,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, |