From 34db78b645a57709f2084d1ff42a45da9880d113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Wed, 23 Nov 2016 18:34:04 +0200 Subject: [PATCH] rtpbin: Handle create_session() returning NULL in bundle code CID 1394492. --- gst/rtpmanager/gstrtpbin.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index f58de01164..b448040290 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -689,6 +689,12 @@ new_bundled_ssrc_pad_found (GstElement * element, guint ssrc, GstPad * pad, if (!target_session) { target_session = create_session (rtpbin, session_id); } + if (!target_session) { + /* create_session() warned already */ + GST_RTP_BIN_DYN_UNLOCK (rtpbin); + return; + } + if (!target_session->recv_rtp_sink) { recv_rtp_sink = complete_session_sink (rtpbin, target_session, FALSE); }