Default constructors for new VideoEngine structs.
BUG=
R=mflodman@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/1543004
git-svn-id: http://webrtc.googlecode.com/svn/trunk/webrtc@4115 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/video_engine/new_include/common.h b/video_engine/new_include/common.h
index 799ea9a..ca35ece 100644
--- a/video_engine/new_include/common.h
+++ b/video_engine/new_include/common.h
@@ -63,6 +63,11 @@
};
struct RtpStatistics {
+ RtpStatistics()
+ : ssrc(0),
+ fraction_loss(0),
+ cumulative_loss(0),
+ extended_max_sequence_number(0) {}
uint32_t ssrc;
int fraction_loss;
int cumulative_loss;
@@ -70,7 +75,7 @@
std::string c_name;
};
-// RTCP mode to use. Compound mode is described by RFC 4585 and reduced sized
+// RTCP mode to use. Compound mode is described by RFC 4585 and reduced-size
// RTCP mode is described by RFC 5506.
enum RtcpMode {
kRtcpCompound,
@@ -79,16 +84,18 @@
// Settings for NACK, see RFC 4585 for details.
struct NackConfig {
+ NackConfig() : rtp_history_ms(0) {}
// Send side: the time RTP packets are stored for retransmissions.
// Receive side: the time the receiver is prepared to wait for
// retransmissions.
- // Set to '0' to disable
+ // Set to '0' to disable.
int rtp_history_ms;
};
// Settings for forward error correction, see RFC 5109 for details. Set the
// payload types to '-1' to disable.
struct FecConfig {
+ FecConfig() : ulpfec_payload_type(-1), red_payload_type(-1) {}
// Payload type used for ULPFEC packets.
int ulpfec_payload_type;
@@ -98,7 +105,8 @@
// Settings for RTP retransmission payload format, see RFC 4588 for details.
struct RtxConfig {
- // SSRC to use for the RTX stream, set to '0' for a random generated SSRC.
+ RtxConfig() : ssrc(0), rtx_payload_type(0), video_payload_type(0) {}
+ // SSRC to use for the RTX stream.
uint32_t ssrc;
// Payload type to use for the RTX stream.
@@ -110,6 +118,7 @@
// RTP header extension to use for the video stream, see RFC 5285.
struct RtpExtension {
+ RtpExtension() : id(0) {}
// TODO(mflodman) Add API to query supported extensions.
std::string name;
int id;