webrtcstats: Unify 'packets-lost' data type to int64
authorSangchul Lee <sc11.lee@samsung.com>
Mon, 28 Mar 2022 12:25:50 +0000 (21:25 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 31 Mar 2022 05:37:39 +0000 (05:37 +0000)
commita801d6dd6309fac5a8e1161de08a65b2587228d9
treec959ed875fc37004c64171ad259f8a940809e7de
parent368f7b2cf2780696dd2e7680e8126160976a85d9
webrtcstats: Unify 'packets-lost' data type to int64

Previously, 'packets-lost' member of RTCReceivedRtpStreamStats had
a value of G_TYPE_INT from rtpsource or a value of G_TYPE_UINT64
from rtpjitterbuffer.
Because of the negative value of estimated amount of packets lost
in rtpsource as well as the description in
https://www.w3.org/TR/webrtc-stats/#dom-rtcreceivedrtpstreamstats
it is fixed to set this value with G_TYPE_INT64.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2049>
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcbin.c
subprojects/gst-plugins-bad/ext/webrtc/gstwebrtcstats.c
subprojects/gst-plugins-bad/tests/check/elements/webrtcbin.c