From 273f389d5706aef9943aef04552530fcc20d7b8b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 29 Mar 2014 13:20:30 +0000 Subject: [PATCH] rtpmanager: copy sticky events when exposing pads in more places https://bugzilla.gnome.org/show_bug.cgi?id=724712 --- gst/rtpmanager/gstrtpbin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/rtpmanager/gstrtpbin.c b/gst/rtpmanager/gstrtpbin.c index 9a5d76f..87332fa 100644 --- a/gst/rtpmanager/gstrtpbin.c +++ b/gst/rtpmanager/gstrtpbin.c @@ -2906,6 +2906,7 @@ new_ssrc_pad_found (GstElement * element, guint ssrc, GstPad * pad, g_free (padname); gst_pad_set_active (gpad, TRUE); + gst_pad_sticky_events_foreach (pad, copy_sticky_events, gpad); gst_element_add_pad (GST_ELEMENT_CAST (rtpbin), gpad); gst_object_unref (pad); @@ -3369,6 +3370,8 @@ complete_session_src (GstRtpBin * rtpbin, GstRtpBinSession * session) gst_ghost_pad_new_from_template (gname, send_rtp_src, templ); gst_object_unref (send_rtp_src); gst_pad_set_active (session->send_rtp_src_ghost, TRUE); + gst_pad_sticky_events_foreach (send_rtp_src, copy_sticky_events, + session->send_rtp_src_ghost); gst_element_add_pad (GST_ELEMENT_CAST (rtpbin), session->send_rtp_src_ghost); g_free (gname); -- 2.7.4