Enable WebRTC-SplitMediaChannel by default

This is a refactoring that should have no production impact.
It has been activated for 2 weeks before, but was rolled back
because of a performance impact - this has now been fixed.

Intended to be submitted May 24 - after the 115 branch cut.

Bug: webrtc:13931
Change-Id: I745558cc3062cb4ea0a4d6f537702efc96eb7574
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/305221
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#40131}
This commit is contained in:
Harald Alvestrand 2023-05-15 07:12:40 +00:00 committed by WebRTC LUCI CQ
parent 3df4178d59
commit 61bacd1ddd

View File

@ -202,7 +202,7 @@ RTCError RtpTransceiver::CreateChannel(
"No media engine for mid=" + std::string(mid));
}
bool use_split_media_channel =
context()->field_trials().IsEnabled("WebRTC-SplitMediaChannel");
!context()->field_trials().IsDisabled("WebRTC-SplitMediaChannel");
std::unique_ptr<cricket::ChannelInterface> new_channel;
if (media_type() == cricket::MEDIA_TYPE_AUDIO) {
// TODO(bugs.webrtc.org/11992): CreateVideoChannel internally switches to