diff options
Diffstat (limited to 'gst/rtpmanager/gstrtpbin.c')
-rw-r--r-- | gst/rtpmanager/gstrtpbin.c | 6 |
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); } |