Split VideoReceiveStream2 init into worker / network steps.
This is in preparation for actually doing this initialization differently in the Call class. This CL takes the registration steps that are inherently network thread associated and makes them separate from the ctor/dtor. Inject Call* instead of worker_thread(), which will simplify upcoming work that needs to access the network_thread() as well. This is related to: https://webrtc-review.googlesource.com/c/src/+/220608 https://webrtc-review.googlesource.com/c/src/+/220609 Bug: webrtc:11993 Change-Id: I72769fd61de84967d9a645750c40d01660a2716b Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220764 Reviewed-by: Markus Handell <handellm@webrtc.org> Commit-Queue: Tommi <tommi@webrtc.org> Cr-Commit-Position: refs/heads/master@{#34172}
This commit is contained in:
@ -154,7 +154,7 @@ FlexfecReceiveStreamImpl::FlexfecReceiveStreamImpl(
|
||||
process_thread_(process_thread) {
|
||||
RTC_LOG(LS_INFO) << "FlexfecReceiveStreamImpl: " << config_.ToString();
|
||||
|
||||
network_thread_checker_.Detach();
|
||||
packet_sequence_checker_.Detach();
|
||||
|
||||
// RTCP reporting.
|
||||
rtp_rtcp_->SetRTCPStatus(config_.rtcp_mode);
|
||||
@ -168,7 +168,7 @@ FlexfecReceiveStreamImpl::~FlexfecReceiveStreamImpl() {
|
||||
|
||||
void FlexfecReceiveStreamImpl::RegisterWithTransport(
|
||||
RtpStreamReceiverControllerInterface* receiver_controller) {
|
||||
RTC_DCHECK_RUN_ON(&network_thread_checker_);
|
||||
RTC_DCHECK_RUN_ON(&packet_sequence_checker_);
|
||||
RTC_DCHECK(!rtp_stream_receiver_);
|
||||
|
||||
if (!receiver_)
|
||||
@ -183,7 +183,7 @@ void FlexfecReceiveStreamImpl::RegisterWithTransport(
|
||||
}
|
||||
|
||||
void FlexfecReceiveStreamImpl::UnregisterFromTransport() {
|
||||
RTC_DCHECK_RUN_ON(&network_thread_checker_);
|
||||
RTC_DCHECK_RUN_ON(&packet_sequence_checker_);
|
||||
rtp_stream_receiver_.reset();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user