Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(792)

Unified Diff: webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m

Issue 1796953002: Add breaks in switch statement to fix AppRTCDemo crash (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m
diff --git a/webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m b/webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m
index c9bc3f19b0a1b770c4d2aa8cb3f6444dec71be28..6dd04cc6e02e4d3df90dda19f2e5a096049e0c42 100644
--- a/webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m
+++ b/webrtc/examples/objc/AppRTCDemo/ARDSignalingMessage.m
@@ -94,11 +94,14 @@ static NSString const *kARDSignalingMessageTypeKey = @"type";
switch (sdpType) {
case RTCSdpTypeOffer:
messageType = kARDSignalingMessageTypeOffer;
+ break;
case RTCSdpTypeAnswer:
messageType = kARDSignalingMessageTypeAnswer;
+ break;
case RTCSdpTypePrAnswer:
NSAssert(NO, @"Unexpected type: %@",
[RTCSessionDescription stringForType:sdpType]);
+ break;
}
if (self = [super initWithType:messageType]) {
_sessionDescription = description;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698