Don't inject worker queue into send streams.
This prepares for making AudioSendStream use its own task queue. In the future more of the functionality that depends on running on the task queue is planned to be moved directly into RtpTransportControllerSend. They should instead get it from the transport controller. This affects the media transport tests which previously assumed that the transport controller could be missing. However, this is not something that is used in production, so this is an improvement of the tests as they will behave more like production code. Bug: webrtc:9883 Change-Id: Ie32f4c2f6433ec37ac16a08d531ceb690ea9c0b5 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/126000 Reviewed-by: Oskar Sundbom <ossu@webrtc.org> Reviewed-by: Niels Moller <nisse@webrtc.org> Reviewed-by: Erik Språng <sprang@webrtc.org> Commit-Queue: Sebastian Jansson <srte@webrtc.org> Cr-Commit-Position: refs/heads/master@{#27010}
This commit is contained in:

committed by
Commit Bot

parent
de3360ec1d
commit
0b69826ffb
11
call/call.cc
11
call/call.cc
@ -666,12 +666,8 @@ webrtc::AudioSendStream* Call::CreateAudioSendStream(
|
||||
}
|
||||
}
|
||||
|
||||
// TODO(srte): AudioSendStream should call GetWorkerQueue directly rather than
|
||||
// having it injected.
|
||||
|
||||
AudioSendStream* send_stream = new AudioSendStream(
|
||||
clock_, config, config_.audio_state,
|
||||
transport_send_ptr_->GetWorkerQueue(), module_process_thread_.get(),
|
||||
clock_, config, config_.audio_state, module_process_thread_.get(),
|
||||
transport_send_ptr_, bitrate_allocator_.get(), event_log_,
|
||||
call_stats_.get(), suspended_rtp_state);
|
||||
{
|
||||
@ -802,11 +798,8 @@ webrtc::VideoSendStream* Call::CreateVideoSendStream(
|
||||
// Copy ssrcs from |config| since |config| is moved.
|
||||
std::vector<uint32_t> ssrcs = config.rtp.ssrcs;
|
||||
|
||||
// TODO(srte): VideoSendStream should call GetWorkerQueue directly rather than
|
||||
// having it injected.
|
||||
VideoSendStream* send_stream = new VideoSendStream(
|
||||
clock_, num_cpu_cores_, module_process_thread_.get(),
|
||||
transport_send_ptr_->GetWorkerQueue(), task_queue_factory_,
|
||||
clock_, num_cpu_cores_, module_process_thread_.get(), task_queue_factory_,
|
||||
call_stats_.get(), transport_send_ptr_, bitrate_allocator_.get(),
|
||||
video_send_delay_stats_.get(), event_log_, std::move(config),
|
||||
std::move(encoder_config), suspended_video_send_ssrcs_,
|
||||
|
Reference in New Issue
Block a user