summaryrefslogtreecommitdiff
path: root/common_types.h
diff options
context:
space:
mode:
authorsprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-12-11 14:07:33 +0000
committersprang@webrtc.org <sprang@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2013-12-11 14:07:33 +0000
commitffea4ce3293491d03015cd89b0b351de8769b3f2 (patch)
treebb96fd075a9d688711e0618597c5ccf288a8e907 /common_types.h
parentca63ad967487d69188a69cef2fce83ea3d6873f4 (diff)
downloadwebrtc-ffea4ce3293491d03015cd89b0b351de8769b3f2.tar.gz
Revert 5259 "Callback for send bitrate estimates"
CL is causing flakiness in RampUpTest.WithoutPacing. > Callback for send bitrate estimates > > BUG=2235 > R=mflodman@webrtc.org, pbos@webrtc.org, stefan@webrtc.org > > Review URL: https://webrtc-codereview.appspot.com/4459004 R=mflodman@webrtc.org, pbos@webrtc.org TBR=mflodman Review URL: https://webrtc-codereview.appspot.com/5579005 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@5261 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'common_types.h')
-rw-r--r--common_types.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/common_types.h b/common_types.h
index 49f3a76d..55ba5525 100644
--- a/common_types.h
+++ b/common_types.h
@@ -285,11 +285,14 @@ class StreamDataCountersCallback {
// Rate statistics for a stream
struct BitrateStatistics {
- BitrateStatistics() : bitrate_bps(0), packet_rate(0), timestamp_ms(0) {}
-
- uint32_t bitrate_bps; // Bitrate in bits per second.
- uint32_t packet_rate; // Packet rate in packets per second.
- uint64_t timestamp_ms; // Ntp timestamp in ms at time of rate estimation.
+ BitrateStatistics()
+ : bitrate_(0),
+ packet_rate(0),
+ now(0) {}
+
+ uint32_t bitrate_;
+ uint32_t packet_rate;
+ uint64_t now;
};
// Callback, used to notify an observer whenever new rates have been estimated.