Skip to content

Commit b3d9256

Browse files
youennfmagomez
authored andcommitted
LibWebRTCMediaEndpoint sessionDescriptionType should return a value in all cases.
https://bugs.webkit.org/show_bug.cgi?id=245433 rdar://100044704 Reviewed by Eric Carlson. * Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp: (WebCore::sessionDescriptionType): Canonical link: https://commits.webkit.org/254693@main
1 parent 79cd67f commit b3d9256

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Source/WebCore/Modules/mediastream/libwebrtc/LibWebRTCMediaEndpoint.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ static inline webrtc::SdpType sessionDescriptionType(RTCSdpType sdpType)
141141
case RTCSdpType::Rollback:
142142
return webrtc::SdpType::kRollback;
143143
}
144+
ASSERT_NOT_REACHED();
145+
return webrtc::SdpType::kOffer;
144146
}
145147

146148
void LibWebRTCMediaEndpoint::doSetLocalDescription(const RTCSessionDescription* description)

0 commit comments

Comments
 (0)