summaryrefslogtreecommitdiff
path: root/common_types.h
diff options
context:
space:
mode:
authorpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-10 16:24:54 +0000
committerpbos@webrtc.org <pbos@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d>2014-07-10 16:24:54 +0000
commit9aa3497dc77180f83e28f6092253e2785f10d900 (patch)
tree7d0da852c432cdac7bd98806c7bc5cd22659d984 /common_types.h
parent579d63c9b10e749c6553d966158900ab9830bb8b (diff)
downloadwebrtc-9aa3497dc77180f83e28f6092253e2785f10d900.tar.gz
Count total bytes sent in RTPSender::Bytes().
Previously only media bytes were included, this adds header bytes and padding bytes to the calculation. BUG= R=stefan@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/19939004 git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@6654 4adac7df-926f-26a2-2b94-8c16560cd09d
Diffstat (limited to 'common_types.h')
-rw-r--r--common_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/common_types.h b/common_types.h
index 193e2818..796ddca0 100644
--- a/common_types.h
+++ b/common_types.h
@@ -225,6 +225,7 @@ struct StreamDataCounters {
retransmitted_packets(0),
fec_packets(0) {}
+ // TODO(pbos): Rename bytes -> media_bytes.
uint32_t bytes; // Payload bytes, excluding RTP headers and padding.
uint32_t header_bytes; // Number of bytes used by RTP headers.
uint32_t padding_bytes; // Number of padding bytes.