Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(309)

Side by Side Diff: webrtc/audio/audio_receive_stream.cc

Issue 1608563005: Enable transport seq num extension on receive channel to suppress log warning. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Add test. Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 channel_proxy_->SetReceiveAudioLevelIndicationStatus(true, extension.id); 101 channel_proxy_->SetReceiveAudioLevelIndicationStatus(true, extension.id);
102 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( 102 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension(
103 kRtpExtensionAudioLevel, extension.id); 103 kRtpExtensionAudioLevel, extension.id);
104 RTC_DCHECK(registered); 104 RTC_DCHECK(registered);
105 } else if (extension.name == RtpExtension::kAbsSendTime) { 105 } else if (extension.name == RtpExtension::kAbsSendTime) {
106 channel_proxy_->SetReceiveAbsoluteSenderTimeStatus(true, extension.id); 106 channel_proxy_->SetReceiveAbsoluteSenderTimeStatus(true, extension.id);
107 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( 107 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension(
108 kRtpExtensionAbsoluteSendTime, extension.id); 108 kRtpExtensionAbsoluteSendTime, extension.id);
109 RTC_DCHECK(registered); 109 RTC_DCHECK(registered);
110 } else if (extension.name == RtpExtension::kTransportSequenceNumber) { 110 } else if (extension.name == RtpExtension::kTransportSequenceNumber) {
111 channel_proxy_->EnableReceiveTransportSequenceNumber(extension.id);
111 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension( 112 bool registered = rtp_header_parser_->RegisterRtpHeaderExtension(
112 kRtpExtensionTransportSequenceNumber, extension.id); 113 kRtpExtensionTransportSequenceNumber, extension.id);
113 RTC_DCHECK(registered); 114 RTC_DCHECK(registered);
114 } else { 115 } else {
115 RTC_NOTREACHED() << "Unsupported RTP extension."; 116 RTC_NOTREACHED() << "Unsupported RTP extension.";
116 } 117 }
117 } 118 }
118 // Configure bandwidth estimation. 119 // Configure bandwidth estimation.
119 channel_proxy_->SetCongestionControlObjects( 120 channel_proxy_->SetCongestionControlObjects(
120 nullptr, nullptr, congestion_controller->packet_router()); 121 nullptr, nullptr, congestion_controller->packet_router());
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 248
248 VoiceEngine* AudioReceiveStream::voice_engine() const { 249 VoiceEngine* AudioReceiveStream::voice_engine() const {
249 internal::AudioState* audio_state = 250 internal::AudioState* audio_state =
250 static_cast<internal::AudioState*>(audio_state_.get()); 251 static_cast<internal::AudioState*>(audio_state_.get());
251 VoiceEngine* voice_engine = audio_state->voice_engine(); 252 VoiceEngine* voice_engine = audio_state->voice_engine();
252 RTC_DCHECK(voice_engine); 253 RTC_DCHECK(voice_engine);
253 return voice_engine; 254 return voice_engine;
254 } 255 }
255 } // namespace internal 256 } // namespace internal
256 } // namespace webrtc 257 } // namespace webrtc
OLDNEW
« no previous file with comments | « no previous file | webrtc/audio/audio_receive_stream_unittest.cc » ('j') | webrtc/audio/audio_receive_stream_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698