summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-11-23 18:34:04 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-11-23 18:34:04 +0200
commit34db78b645a57709f2084d1ff42a45da9880d113 (patch)
tree432439959fc64ccf12ec29adb3991179a2a02cf7
parent01682ae95bde92b6327f6b1eb1aa8abfb0670f59 (diff)
rtpbin: Handle create_session() returning NULL in bundle code
CID 1394492.
-rw-r--r--gst/rtpmanager/gstrtpbin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c
index f58de0116..b44804029 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);
}