mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 22:36:33 +00:00
rtpbin: Handle create_session() returning NULL in bundle code
CID 1394492.
This commit is contained in:
parent
01682ae95b
commit
34db78b645
1 changed files with 6 additions and 0 deletions
|
@ -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…
Reference in a new issue