diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-25 12:48:21 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-07-25 12:48:38 +0200 |
commit | b9485b2305a18e1681a9ff137da7b63edfce4234 (patch) | |
tree | 794054f3b984f257c2adf16a9034409750583af0 /gst/realmedia | |
parent | 445af55d9fd50b3af7626fc13dfc6e5e18ae2a23 (diff) |
rdt: set caps after activating the pad
Diffstat (limited to 'gst/realmedia')
-rw-r--r-- | gst/realmedia/rdtmanager.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gst/realmedia/rdtmanager.c b/gst/realmedia/rdtmanager.c index 10cb5843..1f42dbde 100644 --- a/gst/realmedia/rdtmanager.c +++ b/gst/realmedia/rdtmanager.c @@ -298,15 +298,16 @@ activate_session (GstRDTManager * rdtmanager, GstRDTManagerSession * session, session->recv_rtp_src = gst_pad_new_from_template (templ, name); g_free (name); - gst_pad_set_caps (session->recv_rtp_src, caps); - gst_caps_unref (caps); - gst_pad_set_element_private (session->recv_rtp_src, session); gst_pad_set_query_function (session->recv_rtp_src, gst_rdt_manager_query_src); gst_pad_set_activatemode_function (session->recv_rtp_src, gst_rdt_manager_src_activate_mode); gst_pad_set_active (session->recv_rtp_src, TRUE); + + gst_pad_set_caps (session->recv_rtp_src, caps); + gst_caps_unref (caps); + gst_element_add_pad (GST_ELEMENT_CAST (rdtmanager), session->recv_rtp_src); return TRUE; |