Remove Invoke from BaseChannel::SetPayloadTypeDemuxingEnabled

The Invoke() isn't necessary as the method is always called on the
correct thread (now enforced with a DCHECK).

Bug: webrtc:12726
Change-Id: I53bbdabc5d6de1316e7cf478d8912e19dd0e45e0
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/216690
Commit-Queue: Tommi <tommi@webrtc.org>
Reviewed-by: Niels Moller <nisse@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#33899}
This commit is contained in:
Tommi
2021-05-03 12:37:43 +02:00
committed by WebRTC LUCI CQ
parent 48a4d33719
commit 15f41ff9c2

View File

@ -326,11 +326,9 @@ void BaseChannel::SetContent_s(const MediaContentDescription* content,
}
bool BaseChannel::SetPayloadTypeDemuxingEnabled(bool enabled) {
TRACE_EVENT0("webrtc", "BaseChannel::SetPayloadTypeDemuxingEnabled");
return InvokeOnWorker<bool>(RTC_FROM_HERE, [this, enabled] {
RTC_DCHECK_RUN_ON(worker_thread());
TRACE_EVENT0("webrtc", "BaseChannel::SetPayloadTypeDemuxingEnabled");
return SetPayloadTypeDemuxingEnabled_w(enabled);
});
}
bool BaseChannel::IsReadyToReceiveMedia_w() const {