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/voice_engine/channel_proxy.cc

Issue 2686043006: WebRtcVoiceMediaChannel::AddRecvStream: Don't call SetRecPayloadType (Closed)
Patch Set: Discard packets when updating payload type map Created 3 years, 9 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 channel()->SetBitRate(bitrate_bps, probing_interval_ms); 166 channel()->SetBitRate(bitrate_bps, probing_interval_ms);
167 } 167 }
168 168
169 void ChannelProxy::SetRecPayloadType(int payload_type, 169 void ChannelProxy::SetRecPayloadType(int payload_type,
170 const SdpAudioFormat& format) { 170 const SdpAudioFormat& format) {
171 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 171 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
172 const int result = channel()->SetRecPayloadType(payload_type, format); 172 const int result = channel()->SetRecPayloadType(payload_type, format);
173 RTC_DCHECK_EQ(0, result); 173 RTC_DCHECK_EQ(0, result);
174 } 174 }
175 175
176 bool ChannelProxy::SetReceiveCodecs(
177 const std::map<int, SdpAudioFormat>& codecs) {
178 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
179 return channel()->SetReceiveCodecs(codecs);
180 }
181
176 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) { 182 void ChannelProxy::SetSink(std::unique_ptr<AudioSinkInterface> sink) {
177 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 183 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
178 channel()->SetSink(std::move(sink)); 184 channel()->SetSink(std::move(sink));
179 } 185 }
180 186
181 void ChannelProxy::SetInputMute(bool muted) { 187 void ChannelProxy::SetInputMute(bool muted) {
182 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 188 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
183 channel()->SetInputMute(muted); 189 channel()->SetInputMute(muted);
184 } 190 }
185 191
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 return channel()->SetSendCNPayloadType(type, frequency) == 0; 373 return channel()->SetSendCNPayloadType(type, frequency) == 0;
368 } 374 }
369 375
370 Channel* ChannelProxy::channel() const { 376 Channel* ChannelProxy::channel() const {
371 RTC_DCHECK(channel_owner_.channel()); 377 RTC_DCHECK(channel_owner_.channel());
372 return channel_owner_.channel(); 378 return channel_owner_.channel();
373 } 379 }
374 380
375 } // namespace voe 381 } // namespace voe
376 } // namespace webrtc 382 } // namespace webrtc
OLDNEW
« webrtc/voice_engine/channel.cc ('K') | « webrtc/voice_engine/channel_proxy.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698