Index: webrtc/video/payload_router.cc |
diff --git a/webrtc/video/payload_router.cc b/webrtc/video/payload_router.cc |
index 968d82df62a0fa2c7153f49ca70202ea6c05090a..d466e41bb01bb44f0621fb2844b99ac2751c83cf 100644 |
--- a/webrtc/video/payload_router.cc |
+++ b/webrtc/video/payload_router.cc |
@@ -16,8 +16,10 @@ |
namespace webrtc { |
-PayloadRouter::PayloadRouter() |
- : active_(false), num_sending_modules_(0) {} |
+PayloadRouter::PayloadRouter(const std::vector<RtpRtcp*>& rtp_modules) |
+ : active_(false), num_sending_modules_(1), rtp_modules_(rtp_modules) { |
+ UpdateModuleSendingState(); |
+} |
PayloadRouter::~PayloadRouter() {} |
@@ -26,12 +28,6 @@ size_t PayloadRouter::DefaultMaxPayloadLength() { |
return IP_PACKET_SIZE - kIpUdpSrtpLength; |
} |
-void PayloadRouter::Init( |
- const std::vector<RtpRtcp*>& rtp_modules) { |
- RTC_DCHECK(rtp_modules_.empty()); |
- rtp_modules_ = rtp_modules; |
-} |
- |
void PayloadRouter::set_active(bool active) { |
rtc::CritScope lock(&crit_); |
if (active_ == active) |