rtpbin: Handle create_session() returning NULL in bundle code

CID 1394492.
This commit is contained in:
Sebastian Dröge 2016-11-23 18:34:04 +02:00
parent 01682ae95b
commit 34db78b645

View file

@ -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);
}