Commit 329b2d3a authored by Sebastian Dröge's avatar Sebastian Dröge 🍵 Committed by Sebastian Dröge

webrtcbin: Don't assert if an SDP media can't be converted to caps

Fixes #1008
parent f5b1c75d
Pipeline #47193 passed with stages
in 38 minutes and 29 seconds
......@@ -2935,6 +2935,15 @@ _create_answer_task (GstWebRTCBin * webrtc, const GstStructure * options)
answer_caps = gst_caps_ref (offer_caps);
if (gst_caps_is_empty (answer_caps)) {
GST_WARNING_OBJECT (webrtc, "Could not create caps for media");
if (rtp_trans)
gst_object_unref (rtp_trans);
gst_caps_unref (answer_caps);
goto rejected;
seen_transceivers = g_list_prepend (seen_transceivers, rtp_trans);
if (!rtp_trans) {
......@@ -188,6 +188,8 @@ _rtp_caps_from_media (const GstSDPMedia * media)
GstCaps *caps;
caps = gst_sdp_media_get_caps_from_media (media, pt);
if (!caps)
/* gst_sdp_media_get_caps_from_media() produces caps with name
* "application/x-unknown" which will fail intersection with
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment