From 133a1593ee219b60173b367a42a5d814eef419c5 Mon Sep 17 00:00:00 2001 From: Costa Shulyupin Date: Tue, 14 Apr 2020 20:13:56 +0300 Subject: [PATCH] android, sendrecv: add missing break in switch case statements --- webrtc/android/app/src/main/jni/webrtc.c | 1 + webrtc/sendrecv/gst/webrtc-sendrecv.c | 1 + 2 files changed, 2 insertions(+) diff --git a/webrtc/android/app/src/main/jni/webrtc.c b/webrtc/android/app/src/main/jni/webrtc.c index badd485cb9..bfcd8b24b2 100644 --- a/webrtc/android/app/src/main/jni/webrtc.c +++ b/webrtc/android/app/src/main/jni/webrtc.c @@ -498,6 +498,7 @@ on_server_message (SoupWebsocketConnection * conn, SoupWebsocketDataType type, case PEER_CONNECTED: case PEER_CALL_NEGOTIATING: webrtc->app_state = PEER_CALL_ERROR; + break; default: webrtc->app_state = APP_STATE_ERROR; } diff --git a/webrtc/sendrecv/gst/webrtc-sendrecv.c b/webrtc/sendrecv/gst/webrtc-sendrecv.c index 584863d0c4..f2fef123cc 100644 --- a/webrtc/sendrecv/gst/webrtc-sendrecv.c +++ b/webrtc/sendrecv/gst/webrtc-sendrecv.c @@ -602,6 +602,7 @@ on_server_message (SoupWebsocketConnection * conn, SoupWebsocketDataType type, case PEER_CONNECTED: case PEER_CALL_NEGOTIATING: app_state = PEER_CALL_ERROR; + break; default: app_state = APP_STATE_ERROR; }