Index: talk/app/webrtc/rtpsender.cc |
diff --git a/talk/app/webrtc/rtpsender.cc b/talk/app/webrtc/rtpsender.cc |
index c0d23a0503cc08fb5a7fd8b301f8bd99bf076bd8..f9ed4c30cc31d325d5acb7cc3bb220433a6df47b 100644 |
--- a/talk/app/webrtc/rtpsender.cc |
+++ b/talk/app/webrtc/rtpsender.cc |
@@ -75,6 +75,21 @@ AudioRtpSender::AudioRtpSender(AudioTrackInterface* track, |
track_->AddSink(sink_adapter_.get()); |
} |
+AudioRtpSender::AudioRtpSender(AudioTrackInterface* track, |
+ AudioProviderInterface* provider, |
+ StatsCollector* stats) |
+ : id_(track->id()), |
+ stream_id_(rtc::CreateRandomUuid()), |
+ provider_(provider), |
+ stats_(stats), |
+ track_(track), |
+ cached_track_enabled_(track->enabled()), |
+ sink_adapter_(new LocalAudioSinkAdapter()) { |
+ RTC_DCHECK(provider != nullptr); |
+ track_->RegisterObserver(this); |
+ track_->AddSink(sink_adapter_.get()); |
+} |
+ |
AudioRtpSender::AudioRtpSender(AudioProviderInterface* provider, |
StatsCollector* stats) |
: id_(rtc::CreateRandomUuid()), |
@@ -211,6 +226,17 @@ VideoRtpSender::VideoRtpSender(VideoTrackInterface* track, |
track_->RegisterObserver(this); |
} |
+VideoRtpSender::VideoRtpSender(VideoTrackInterface* track, |
+ VideoProviderInterface* provider) |
+ : id_(track->id()), |
+ stream_id_(rtc::CreateRandomUuid()), |
+ provider_(provider), |
+ track_(track), |
+ cached_track_enabled_(track->enabled()) { |
+ RTC_DCHECK(provider != nullptr); |
+ track_->RegisterObserver(this); |
+} |
+ |
VideoRtpSender::VideoRtpSender(VideoProviderInterface* provider) |
: id_(rtc::CreateRandomUuid()), |
stream_id_(rtc::CreateRandomUuid()), |