Chromium Code Reviews| Index: webrtc/audio/audio_send_stream.cc |
| diff --git a/webrtc/audio/audio_send_stream.cc b/webrtc/audio/audio_send_stream.cc |
| index 24afcbcf58e94ad2582dd9fc88cf7860f27d3b2d..409d24aa7084a884e127d81de21d003f873ce4d8 100644 |
| --- a/webrtc/audio/audio_send_stream.cc |
| +++ b/webrtc/audio/audio_send_stream.cc |
| @@ -76,6 +76,8 @@ AudioSendStream::AudioSendStream( |
| channel_proxy_->SetLocalSSRC(config.rtp.ssrc); |
| channel_proxy_->SetRTCP_CNAME(config.rtp.c_name); |
| + channel_proxy_->RegisterExternalTransport(config.send_transport); |
| + |
| for (const auto& extension : config.rtp.extensions) { |
| if (extension.name == RtpExtension::kAbsSendTime) { |
| channel_proxy_->SetSendAbsoluteSenderTimeStatus(true, extension.id); |
| @@ -92,6 +94,7 @@ AudioSendStream::AudioSendStream( |
| AudioSendStream::~AudioSendStream() { |
| RTC_DCHECK(thread_checker_.CalledOnValidThread()); |
| LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); |
| + channel_proxy_->DeRegisterExternalTransport(); |
| channel_proxy_->ResetCongestionControlObjects(); |
| } |
| @@ -122,7 +125,8 @@ bool AudioSendStream::DeliverRtcp(const uint8_t* packet, size_t length) { |
| // calls on the worker thread. We should move towards always using a network |
| // thread. Then this check can be enabled. |
| // RTC_DCHECK(!thread_checker_.CalledOnValidThread()); |
| - return false; |
| + return channel_proxy_->ReceivedRTCPPacket(static_cast<const uint8_t*>(packet), |
|
the sun
2016/04/22 12:40:31
Looks like this cast is not needed anymore?
mflodman
2016/04/27 13:42:17
Done.
|
| + length) == 0; |
| } |
| bool AudioSendStream::SendTelephoneEvent(int payload_type, int event, |