| OLD | NEW |
| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 } | 104 } |
| 105 | 105 |
| 106 pacer_thread_checker_.DetachFromThread(); | 106 pacer_thread_checker_.DetachFromThread(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 AudioSendStream::~AudioSendStream() { | 109 AudioSendStream::~AudioSendStream() { |
| 110 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 110 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 111 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); | 111 LOG(LS_INFO) << "~AudioSendStream: " << config_.ToString(); |
| 112 transport_->send_side_cc()->DeRegisterPacketFeedbackObserver(this); | 112 transport_->send_side_cc()->DeRegisterPacketFeedbackObserver(this); |
| 113 channel_proxy_->DeRegisterExternalTransport(); | 113 channel_proxy_->DeRegisterExternalTransport(); |
| 114 channel_proxy_->ResetCongestionControlObjects(); | 114 channel_proxy_->ResetSenderCongestionControlObjects(); |
| 115 channel_proxy_->SetRtcEventLog(nullptr); | 115 channel_proxy_->SetRtcEventLog(nullptr); |
| 116 channel_proxy_->SetRtcpRttStats(nullptr); | 116 channel_proxy_->SetRtcpRttStats(nullptr); |
| 117 } | 117 } |
| 118 | 118 |
| 119 void AudioSendStream::Start() { | 119 void AudioSendStream::Start() { |
| 120 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); | 120 RTC_DCHECK(worker_thread_checker_.CalledOnValidThread()); |
| 121 if (config_.min_bitrate_bps != -1 && config_.max_bitrate_bps != -1) { | 121 if (config_.min_bitrate_bps != -1 && config_.max_bitrate_bps != -1) { |
| 122 RTC_DCHECK_GE(config_.max_bitrate_bps, config_.min_bitrate_bps); | 122 RTC_DCHECK_GE(config_.max_bitrate_bps, config_.min_bitrate_bps); |
| 123 rtc::Event thread_sync_event(false /* manual_reset */, false); | 123 rtc::Event thread_sync_event(false /* manual_reset */, false); |
| 124 worker_queue_->PostTask([this, &thread_sync_event] { | 124 worker_queue_->PostTask([this, &thread_sync_event] { |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 424 LOG(LS_WARNING) << "SetVADStatus() failed."; | 424 LOG(LS_WARNING) << "SetVADStatus() failed."; |
| 425 return false; | 425 return false; |
| 426 } | 426 } |
| 427 } | 427 } |
| 428 } | 428 } |
| 429 return true; | 429 return true; |
| 430 } | 430 } |
| 431 | 431 |
| 432 } // namespace internal | 432 } // namespace internal |
| 433 } // namespace webrtc | 433 } // namespace webrtc |
| OLD | NEW |