summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Dufresne <nicolas.dufresne@collabora.com>2013-01-25 10:35:22 -0500
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>2013-05-25 16:31:13 -0400
commitfeb3905eaf8202e53879c70da1d9dc110aa5dd81 (patch)
tree7d5a1205fbaa4e4af8b9e5a7da0eeceb71c663c3
parentdc63dc9877b7ec2af36de36b28fa7308ca63ec11 (diff)
ghostpad: Remove uneeded set_caps()
Linking the element should automatically resend all sticky events.
-rw-r--r--gnl/gnlghostpad.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gnl/gnlghostpad.c b/gnl/gnlghostpad.c
index eeeb06f..4ec1863 100644
--- a/gnl/gnlghostpad.c
+++ b/gnl/gnlghostpad.c
@@ -775,17 +775,6 @@ gnl_object_ghost_pad_set_target (GnlObject * object, GstPad * ghost,
if (!(gst_ghost_pad_set_target (GST_GHOST_PAD (ghost), target)))
return FALSE;
- if (target) {
- GstCaps *current_caps;
-
- /* if the target has negotiated caps, forward them to the ghost */
- /* FIXME : I'm not sure we need this anymore */
- if ((current_caps = gst_pad_get_current_caps (target))) {
- gst_pad_set_caps (ghost, current_caps);
- gst_caps_unref (current_caps);
- }
- }
-
return TRUE;
}