diff options
author | Matthew Waters <matthew@centricular.com> | 2018-02-08 15:47:33 +1100 |
---|---|---|
committer | Matthew Waters <matthew@centricular.com> | 2018-02-08 15:47:33 +1100 |
commit | 7e6b4dcb493435ddc2e9449386340747720b40a8 (patch) | |
tree | 0bde91b560c2d11c27ac27e6e142f17e70ab97bd /ext/webrtc/gstwebrtcbin.c | |
parent | 4ef2a20a83bb9eedfce7bdd428f9c71be5b12516 (diff) |
webrtc: change dead code to an assert
CID #1429140
Diffstat (limited to 'ext/webrtc/gstwebrtcbin.c')
-rw-r--r-- | ext/webrtc/gstwebrtcbin.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ext/webrtc/gstwebrtcbin.c b/ext/webrtc/gstwebrtcbin.c index 453fb26d0..5c08e10e3 100644 --- a/ext/webrtc/gstwebrtcbin.c +++ b/ext/webrtc/gstwebrtcbin.c @@ -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 */ |