Invalid ssrc value in the stats of type 'inbound-rtp'
authoryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Oct 2018 20:10:32 +0000 (20:10 +0000)
committeryouenn@apple.com <youenn@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 29 Oct 2018 20:10:32 +0000 (20:10 +0000)
commit0195f34b4613c417f979238323fdd7760caeb7df
tree49d357c883b39f95e98c978f3fb46944e532aca8
parent290fa8e60bc3d2a00c21d33da4d7d449bc4033ea
Invalid ssrc value in the stats of type 'inbound-rtp'
https://bugs.webkit.org/show_bug.cgi?id=190826
<rdar://problem/45487435>

Reviewed by Eric Carlson.

Source/WebCore:

Value was not initialized in WebCore if missing from libwebrtc.
Change value to an optional so that it will not appear if libwebrtc does not expose it.
Move integer/boolean values from being initialized to be optional so
that we do not expose them to JS if not exposed by libwebrtc.

Covered by updated tests.

* Modules/mediastream/RTCStatsReport.h:

LayoutTests:

* webrtc/video-mediastreamtrack-stats.html:
* webrtc/video-stats-expected.txt:
* webrtc/video-stats.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/webrtc/video-mediastreamtrack-stats.html
LayoutTests/webrtc/video-stats-expected.txt
LayoutTests/webrtc/video-stats.html
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/RTCStatsReport.h