aboutsummaryrefslogtreecommitdiff
path: root/audio/voip/audio_channel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'audio/voip/audio_channel.cc')
-rw-r--r--audio/voip/audio_channel.cc13
1 files changed, 3 insertions, 10 deletions
diff --git a/audio/voip/audio_channel.cc b/audio/voip/audio_channel.cc
index d11e6d79f9..b4a50eec12 100644
--- a/audio/voip/audio_channel.cc
+++ b/audio/voip/audio_channel.cc
@@ -32,12 +32,10 @@ AudioChannel::AudioChannel(
Transport* transport,
uint32_t local_ssrc,
TaskQueueFactory* task_queue_factory,
- ProcessThread* process_thread,
AudioMixer* audio_mixer,
rtc::scoped_refptr<AudioDecoderFactory> decoder_factory)
- : audio_mixer_(audio_mixer), process_thread_(process_thread) {
+ : audio_mixer_(audio_mixer) {
RTC_DCHECK(task_queue_factory);
- RTC_DCHECK(process_thread);
RTC_DCHECK(audio_mixer);
Clock* clock = Clock::GetRealTimeClock();
@@ -56,9 +54,6 @@ AudioChannel::AudioChannel(
rtp_rtcp_->SetSendingMediaStatus(false);
rtp_rtcp_->SetRTCPStatus(RtcpMode::kCompound);
- // ProcessThread periodically services RTP stack for RTCP.
- process_thread_->RegisterModule(rtp_rtcp_.get(), RTC_FROM_HERE);
-
ingress_ = std::make_unique<AudioIngress>(rtp_rtcp_.get(), clock,
receive_statistics_.get(),
std::move(decoder_factory));
@@ -80,12 +75,10 @@ AudioChannel::~AudioChannel() {
audio_mixer_->RemoveSource(ingress_.get());
- // AudioEgress could hold current global TaskQueueBase that we need to clear
- // before ProcessThread::DeRegisterModule.
+ // TODO(bugs.webrtc.org/11581): unclear if we still need to clear |egress_|
+ // here.
egress_.reset();
ingress_.reset();
-
- process_thread_->DeRegisterModule(rtp_rtcp_.get());
}
bool AudioChannel::StartSend() {