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

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

Issue 2774623006: Let PacketRouter separate send and receive modules. (Closed)
Patch Set: Send feedback messages on a send module, if possible. Created 3 years, 8 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 } 103 }
104 104
105 pacer_thread_checker_.DetachFromThread(); 105 pacer_thread_checker_.DetachFromThread();
106 } 106 }
107 107
108 AudioSendStream::~AudioSendStream() { 108 AudioSendStream::~AudioSendStream() {
109 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 109 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
110 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); 110 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString();
111 send_side_cc_->DeRegisterPacketFeedbackObserver(this); 111 send_side_cc_->DeRegisterPacketFeedbackObserver(this);
112 channel_proxy_->DeRegisterExternalTransport(); 112 channel_proxy_->DeRegisterExternalTransport();
113 channel_proxy_->ResetCongestionControlObjects(); 113 channel_proxy_->ResetSenderCongestionControlObjects();
114 channel_proxy_->SetRtcEventLog(nullptr); 114 channel_proxy_->SetRtcEventLog(nullptr);
115 channel_proxy_->SetRtcpRttStats(nullptr); 115 channel_proxy_->SetRtcpRttStats(nullptr);
116 } 116 }
117 117
118 void AudioSendStream::Start() { 118 void AudioSendStream::Start() {
119 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); 119 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread());
120 if (config_.min_bitrate_bps != -1 && config_.max_bitrate_bps != -1) { 120 if (config_.min_bitrate_bps != -1 && config_.max_bitrate_bps != -1) {
121 RTC_DCHECK_GE(config_.max_bitrate_bps, config_.min_bitrate_bps); 121 RTC_DCHECK_GE(config_.max_bitrate_bps, config_.min_bitrate_bps);
122 rtc::Event thread_sync_event(false /* manual_reset */, false); 122 rtc::Event thread_sync_event(false /* manual_reset */, false);
123 worker_queue_->PostTask([this, &thread_sync_event] { 123 worker_queue_->PostTask([this, &thread_sync_event] {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 LOG(LS_WARNING) << "SetVADStatus() failed."; 421 LOG(LS_WARNING) << "SetVADStatus() failed.";
422 return false; 422 return false;
423 } 423 }
424 } 424 }
425 } 425 }
426 return true; 426 return true;
427 } 427 }
428 428
429 } // namespace internal 429 } // namespace internal
430 } // namespace webrtc 430 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698