android, sendrecv: add missing break in switch case statements
authorCosta Shulyupin <costa@MakeLinux.net>
Tue, 14 Apr 2020 17:13:56 +0000 (20:13 +0300)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Thu, 16 Apr 2020 15:34:11 +0000 (17:34 +0200)
webrtc/android/app/src/main/jni/webrtc.c
webrtc/sendrecv/gst/webrtc-sendrecv.c

index badd485..bfcd8b2 100644 (file)
@@ -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;
     }
index 584863d..f2fef12 100644 (file)
@@ -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;
     }