diff options
author | Wim Taymans <wtaymans@redhat.com> | 2014-02-14 12:01:00 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2014-02-14 12:05:55 +0100 |
commit | bbe6d9a25876b6869fbd4811b38f9ad65b664a1b (patch) | |
tree | 1b551c2cc81b807c0f993505db451e717476aecf /gst/rtpmanager/gstrtpsession.c | |
parent | 7f1d51ba90275a53e00339a75746bc638edded0c (diff) |
rtpsession: proxy caps and allocation on RTP pads
recv_rtp_sink: allow proxying of the allocation query.
send_rtp_sink: allow proxying of caps and allocation. This allows us to
query caps downstream as well as get an allocator from downstream.
send_rtp_src: allow proxy of caps, this makes the caps query do
upstream.
See https://bugzilla.gnome.org/show_bug.cgi?id=723850
Diffstat (limited to 'gst/rtpmanager/gstrtpsession.c')
-rw-r--r-- | gst/rtpmanager/gstrtpsession.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmanager/gstrtpsession.c b/gst/rtpmanager/gstrtpsession.c index 0aeacf6c2..faaaae863 100644 --- a/gst/rtpmanager/gstrtpsession.c +++ b/gst/rtpmanager/gstrtpsession.c @@ -2120,6 +2120,7 @@ create_recv_rtp_sink (GstRtpSession * rtpsession) gst_rtp_session_event_recv_rtp_sink); gst_pad_set_iterate_internal_links_function (rtpsession->recv_rtp_sink, gst_rtp_session_iterate_internal_links); + GST_PAD_SET_PROXY_ALLOCATION (rtpsession->recv_rtp_sink); gst_pad_set_active (rtpsession->recv_rtp_sink, TRUE); gst_element_add_pad (GST_ELEMENT_CAST (rtpsession), rtpsession->recv_rtp_sink); @@ -2234,6 +2235,8 @@ create_send_rtp_sink (GstRtpSession * rtpsession) gst_rtp_session_event_send_rtp_sink); gst_pad_set_iterate_internal_links_function (rtpsession->send_rtp_sink, gst_rtp_session_iterate_internal_links); + GST_PAD_SET_PROXY_CAPS (rtpsession->send_rtp_sink); + GST_PAD_SET_PROXY_ALLOCATION (rtpsession->send_rtp_sink); gst_pad_set_active (rtpsession->send_rtp_sink, TRUE); gst_element_add_pad (GST_ELEMENT_CAST (rtpsession), rtpsession->send_rtp_sink); @@ -2245,6 +2248,7 @@ create_send_rtp_sink (GstRtpSession * rtpsession) gst_rtp_session_iterate_internal_links); gst_pad_set_event_function (rtpsession->send_rtp_src, gst_rtp_session_event_send_rtp_src); + GST_PAD_SET_PROXY_CAPS (rtpsession->send_rtp_src); gst_pad_set_active (rtpsession->send_rtp_src, TRUE); gst_element_add_pad (GST_ELEMENT_CAST (rtpsession), rtpsession->send_rtp_src); |