summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.com>2013-04-02 23:35:06 -0400
committerOlivier CrĂȘte <olivier.crete@collabora.com>2013-04-02 23:42:41 -0400
commit76679f9ae902828ee695b6ef5685d613f873e31c (patch)
tree3ad773342b4d02f00d56aabfba918c973b39054c
parent4ad8693f3c7126b2d983f986e8b466e1f97c21f3 (diff)
downloadgstreamer-plugins-good-76679f9ae902828ee695b6ef5685d613f873e31c.tar.gz
rtpssrcdemux: No need to explicitely forward the caps
They are forwarded with the other events
-rw-r--r--gst/rtpmanager/gstrtpssrcdemux.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/gst/rtpmanager/gstrtpssrcdemux.c b/gst/rtpmanager/gstrtpssrcdemux.c
index 99765ba6e..3f3f6accd 100644
--- a/gst/rtpmanager/gstrtpssrcdemux.c
+++ b/gst/rtpmanager/gstrtpssrcdemux.c
@@ -220,7 +220,6 @@ find_or_create_demux_pad_for_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc,
GstPadTemplate *templ;
gchar *padname;
GstRtpSsrcDemuxPad *demuxpad;
- GstCaps *caps;
struct ForwardStickyEventData fdata;
GstPad *retpad;
gulong rtp_block, rtcp_block;
@@ -289,15 +288,6 @@ find_or_create_demux_pad_for_ssrc (GstRtpSsrcDemux * demux, guint32 ssrc,
gst_pad_sticky_events_foreach (demux->rtcp_sink, forward_sticky_events,
&fdata);
- /* copy caps from input */
- if ((caps = gst_pad_get_current_caps (demux->rtp_sink))) {
- gst_pad_set_caps (rtp_pad, caps);
- gst_caps_unref (caps);
- }
- if ((caps = gst_pad_get_current_caps (demux->rtcp_sink))) {
- gst_pad_set_caps (rtcp_pad, caps);
- gst_caps_unref (caps);
- }
gst_element_add_pad (GST_ELEMENT_CAST (demux), rtp_pad);
gst_element_add_pad (GST_ELEMENT_CAST (demux), rtcp_pad);