Demote RTC_CHECK for sctp_mid() to RTC_LOG(LS_ERROR) if unavailable
Bug: chromium:326275823 Change-Id: Icfb8850867d1e39f23661422693da4f2829ecc57 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/340460 Reviewed-by: Evan Shrubsole <eshr@webrtc.org> Commit-Queue: Tomas Gunnarsson <tommi@webrtc.org> Cr-Commit-Position: refs/heads/main@{#41793}
This commit is contained in:
parent
4f63ea423f
commit
efbfc40029
@ -4297,11 +4297,13 @@ void SdpOfferAnswerHandler::GetOptionsForUnifiedPlanOffer(
|
||||
GetMediaDescriptionOptionsForRejectedData(mid));
|
||||
} else {
|
||||
const auto data_mid = pc_->sctp_mid();
|
||||
RTC_CHECK(data_mid);
|
||||
if (mid == data_mid.value()) {
|
||||
if (data_mid.has_value() && mid == data_mid.value()) {
|
||||
session_options->media_description_options.push_back(
|
||||
GetMediaDescriptionOptionsForActiveData(mid));
|
||||
} else {
|
||||
if (!data_mid.has_value()) {
|
||||
RTC_LOG(LS_ERROR) << "Datachannel transport not available: " << mid;
|
||||
}
|
||||
session_options->media_description_options.push_back(
|
||||
GetMediaDescriptionOptionsForRejectedData(mid));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user