rtpbin: Handle create_session() returning NULL in bundle code
CID 1394492.
This commit is contained in:
parent
01682ae95b
commit
34db78b645
@ -689,6 +689,12 @@ new_bundled_ssrc_pad_found (GstElement * element, guint ssrc, GstPad * pad,
|
|||||||
if (!target_session) {
|
if (!target_session) {
|
||||||
target_session = create_session (rtpbin, session_id);
|
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) {
|
if (!target_session->recv_rtp_sink) {
|
||||||
recv_rtp_sink = complete_session_sink (rtpbin, target_session, FALSE);
|
recv_rtp_sink = complete_session_sink (rtpbin, target_session, FALSE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user