webrtc: change dead code to an assert
authorMatthew Waters <matthew@centricular.com>
Thu, 8 Feb 2018 04:47:33 +0000 (15:47 +1100)
committerMatthew Waters <matthew@centricular.com>
Thu, 8 Feb 2018 04:47:33 +0000 (15:47 +1100)
CID #1429140

ext/webrtc/gstwebrtcbin.c

index 453fb26..5c08e10 100644 (file)
@@ -1613,8 +1613,7 @@ _create_answer_task (GstWebRTCBin * webrtc, const GstStructure * options)
 
     if (rtp_trans) {
       answer_dir = rtp_trans->direction;
-      if (!answer_caps)
-        goto rejected;
+      g_assert (answer_caps != NULL);
     } else {
       /* if no transceiver, then we only receive that stream and respond with
        * the exact same caps */