summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2011-05-18 18:52:22 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2011-05-18 18:52:22 +0200
commit25989f3c8dc0a9318ad2787449fb418a0f82318e (patch)
tree95d94084ceef78bb4f9d582d71782d6bf354158b
parentdc520c11bc1de00281526a3b85fc62ae510599d9 (diff)
ghostpad: avoid calling setcaps too many times
Don't call setcaps, the caps event will take care of propagating the caps on all pads.
-rw-r--r--gst/gstghostpad.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c
index 32daf4838..23ed3ba2b 100644
--- a/gst/gstghostpad.c
+++ b/gst/gstghostpad.c
@@ -459,7 +459,12 @@ gst_proxy_pad_setcaps_default (GstPad * pad, GstCaps * caps)
target = gst_proxy_pad_get_target (pad);
if (target) {
+#if 0
+ /* FIXME, not needed, the caps event will propagate over the pads
+ * correctly */
res = gst_pad_set_caps (target, caps);
+#endif
+ res = TRUE;
gst_object_unref (target);
} else {
/* We don't have any target, but we shouldn't return FALSE since this