From 25989f3c8dc0a9318ad2787449fb418a0f82318e Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 18 May 2011 18:52:22 +0200 Subject: [PATCH] ghostpad: avoid calling setcaps too many times Don't call setcaps, the caps event will take care of propagating the caps on all pads. --- gst/gstghostpad.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gst/gstghostpad.c b/gst/gstghostpad.c index 32daf48..23ed3ba 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 -- 2.7.4