Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1737)

Unified Diff: webrtc/api/statscollector.h

Issue 2470023004: Return false if PeerConnection::GetStats() is called on invalid tracks (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webrtc/api/statscollector.h
diff --git a/webrtc/api/statscollector.h b/webrtc/api/statscollector.h
index adbac44b8047b2c67f1351b16292c656f39976b6..0e0389b51490681f8c08dba8a30a1f3877cd446c 100644
--- a/webrtc/api/statscollector.h
+++ b/webrtc/api/statscollector.h
@@ -78,6 +78,9 @@ class StatsCollector {
const StatsReport::Id& transport_id,
StatsReport::Direction direction);
+ // A track is invalid if there is no report data for it.
+ bool IsValidTrack(MediaStreamTrackInterface* track);
+
// Method used by the unittest to force a update of stats since UpdateStats()
// that occur less than kMinGatherStatsPeriod number of ms apart will be
// ignored.

Powered by Google App Engine
This is Rietveld 408576698