webrtc: change dead code to an assert

CID #1429140
This commit is contained in:
Matthew Waters 2018-02-08 15:47:33 +11:00
parent 4ef2a20a83
commit 7e6b4dcb49

View 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 */