commit | e9e94c3fee79b0b590e2e0fd40f8c55398d8f548 | [log] [tgz] |
---|---|---|
author | zhihuang <zhihuang@webrtc.org> | Fri Nov 04 11:38:15 2016 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Fri Nov 04 18:38:19 2016 +0000 |
tree | 7b964e2f4f8f6fd392ec9824cc2e3c9e2244cd52 | |
parent | 3326d0ac8232d6e9f6cd696b63f88bd817b0ec62 [diff] |
Return false if PeerConnection::GetStats() is called on invalid tracks Before calling StatsCollctor::GetStats() in PeerConnection::GetStats(), check if the track is valid. If not, return false. A track is invalid if it is not a nullptr and there is no report data for it. BUG=webrtc:6652 Review-Url: https://codereview.webrtc.org/2470023004 Cr-Commit-Position: refs/heads/master@{#14934}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others. This page is maintained by the Google Chrome team.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.